1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <div class='d-editor-overlay hidden'></div>
- <div class='d-editor-modals'>
- {{#d-editor-modal class="insert-link" hidden=insertLinkHidden okAction="insertLink"}}
- <h3>{{i18n "wizard_composer.link_dialog_title"}}</h3>
- {{wizard-text-field value=linkUrl placeholderKey="wizard_composer.link_url_placeholder" class="link-url"}}
- {{wizard-text-field value=linkText placeholderKey="wizard_composer.link_optional_text" class="link-text"}}
- {{/d-editor-modal}}
- </div>
- <div class='d-editor-container'>
- {{#if showPreview}}
- <div class="d-editor-preview-wrapper {{if forcePreview 'force-preview'}}">
- <div class="d-editor-preview">
- {{{preview}}}
- </div>
- </div>
- {{else}}
- <div class="d-editor-textarea-wrapper">
- <div class='d-editor-button-bar'>
- {{#each toolbar.groups as |group|}}
- {{#each group.buttons as |b|}}
- {{#if b.popupMenu}}
- {{toolbar-popup-menu-options
- onPopupMenuAction=onPopupMenuAction
- onExpand=(action b.action b)
- title=b.title
- headerIcon=b.icon
- class=b.className
- content=popupMenuOptions}}
- {{else}}
- <div>{{d.icon}}</div>
- {{d-button
- action=b.action
- actionParam=b
- translatedTitle=b.title
- label=b.label
- icon=b.icon
- class=b.className}}
- {{/if}}
- {{/each}}
- {{#unless group.lastGroup}}
- <div class='d-editor-spacer'></div>
- {{/unless}}
- {{/each}}
- </div>
- {{conditional-loading-spinner condition=loading}}
- {{textarea tabindex=tabindex value=value class="d-editor-input" placeholder=placeholder}}
- </div>
- {{/if}}
- </div>
|