2021-04-12 19:49:53 +05:30
|
|
|
<div class="d-editor-overlay hidden"></div>
|
2018-02-08 12:30:55 +08:00
|
|
|
|
2021-04-12 19:49:53 +05:30
|
|
|
<div class="d-editor-container">
|
2018-02-08 12:30:55 +08:00
|
|
|
{{#if showPreview}}
|
2021-04-12 19:49:53 +05:30
|
|
|
<div class="d-editor-preview-wrapper {{if forcePreview "force-preview"}}">
|
2018-02-08 12:30:55 +08:00
|
|
|
<div class="d-editor-preview">
|
2021-04-12 19:49:53 +05:30
|
|
|
{{html-safe preview}}
|
2018-02-08 12:30:55 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{else}}
|
|
|
|
<div class="d-editor-textarea-wrapper">
|
2021-04-12 19:49:53 +05:30
|
|
|
<div class="d-editor-button-bar">
|
2018-02-08 12:30:55 +08:00
|
|
|
{{#each toolbar.groups as |group|}}
|
|
|
|
{{#each group.buttons as |b|}}
|
|
|
|
{{#if b.popupMenu}}
|
|
|
|
{{toolbar-popup-menu-options
|
|
|
|
onPopupMenuAction=onPopupMenuAction
|
|
|
|
onExpand=(action b.action b)
|
|
|
|
class=b.className
|
2020-02-02 21:42:05 +11:00
|
|
|
content=popupMenuOptions
|
|
|
|
options=(hash
|
|
|
|
popupTitle=b.title
|
|
|
|
icon=b.icon
|
|
|
|
)}}
|
2018-02-08 12:30:55 +08:00
|
|
|
{{else}}
|
|
|
|
<div>{{d.icon}}</div>
|
2021-04-12 19:49:53 +05:30
|
|
|
<button class="wizard-btn {{b.className}}" {{action b.action b}} title={{b.title}} type="button">
|
2019-07-22 17:28:49 +10:00
|
|
|
{{d-icon b.icon}}
|
|
|
|
{{#if b.label}}
|
2020-11-26 16:45:30 +11:00
|
|
|
<span class="d-button-label">{{wizard-i18n b.label}}</span>
|
2019-07-22 17:28:49 +10:00
|
|
|
{{/if}}
|
|
|
|
</button>
|
2018-02-08 12:30:55 +08:00
|
|
|
{{/if}}
|
|
|
|
{{/each}}
|
|
|
|
|
|
|
|
{{#unless group.lastGroup}}
|
2021-04-12 19:49:53 +05:30
|
|
|
<div class="d-editor-spacer"></div>
|
2018-02-08 12:30:55 +08:00
|
|
|
{{/unless}}
|
|
|
|
{{/each}}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{conditional-loading-spinner condition=loading}}
|
2018-04-15 12:49:12 +10:00
|
|
|
{{textarea tabindex=tabindex value=value class="d-editor-input" placeholder=placeholder}}
|
2018-02-08 12:30:55 +08:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|