wizard-editor.hbs 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <div class='d-editor-overlay hidden'></div>
  2. <div class='d-editor-modals'>
  3. {{#d-editor-modal class="insert-link" hidden=insertLinkHidden okAction="insertLink"}}
  4. <h3>{{i18n "wizard_composer.link_dialog_title"}}</h3>
  5. {{wizard-text-field value=linkUrl placeholderKey="wizard_composer.link_url_placeholder" class="link-url"}}
  6. {{wizard-text-field value=linkText placeholderKey="wizard_composer.link_optional_text" class="link-text"}}
  7. {{/d-editor-modal}}
  8. </div>
  9. <div class='d-editor-container'>
  10. {{#if showPreview}}
  11. <div class="d-editor-preview-wrapper {{if forcePreview 'force-preview'}}">
  12. <div class="d-editor-preview">
  13. {{{preview}}}
  14. </div>
  15. </div>
  16. {{else}}
  17. <div class="d-editor-textarea-wrapper">
  18. <div class='d-editor-button-bar'>
  19. {{#each toolbar.groups as |group|}}
  20. {{#each group.buttons as |b|}}
  21. {{#if b.popupMenu}}
  22. {{toolbar-popup-menu-options
  23. onPopupMenuAction=onPopupMenuAction
  24. onExpand=(action b.action b)
  25. title=b.title
  26. headerIcon=b.icon
  27. class=b.className
  28. content=popupMenuOptions}}
  29. {{else}}
  30. <div>{{d.icon}}</div>
  31. {{d-button
  32. action=b.action
  33. actionParam=b
  34. translatedTitle=b.title
  35. label=b.label
  36. icon=b.icon
  37. class=b.className}}
  38. {{/if}}
  39. {{/each}}
  40. {{#unless group.lastGroup}}
  41. <div class='d-editor-spacer'></div>
  42. {{/unless}}
  43. {{/each}}
  44. </div>
  45. {{conditional-loading-spinner condition=loading}}
  46. {{textarea tabindex=tabindex value=value class="d-editor-input" placeholder=placeholder}}
  47. </div>
  48. {{/if}}
  49. </div>