0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-23 09:50:28 +01:00
discourse-custom-wizard/assets/javascripts/wizard/templates/components/wizard-editor.hbs

47 Zeilen
1,5 KiB
Handlebars

2018-02-08 05:30:55 +01:00
<div class='d-editor-overlay hidden'></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)
class=b.className
2020-02-02 11:42:05 +01:00
content=popupMenuOptions
options=(hash
popupTitle=b.title
icon=b.icon
)}}
2018-02-08 05:30:55 +01:00
{{else}}
<div>{{d.icon}}</div>
2019-07-22 09:28:49 +02:00
<button class='wizard-btn {{b.className}}' {{action b.action b}} title="{{b.title}}">
{{d-icon b.icon}}
{{#if b.label}}
<span class="d-button-label">{{i18n b.label}}</span>
{{/if}}
</button>
2018-02-08 05:30:55 +01:00
{{/if}}
{{/each}}
{{#unless group.lastGroup}}
<div class='d-editor-spacer'></div>
{{/unless}}
{{/each}}
</div>
{{conditional-loading-spinner condition=loading}}
2018-04-15 04:49:12 +02:00
{{textarea tabindex=tabindex value=value class="d-editor-input" placeholder=placeholder}}
2018-02-08 05:30:55 +01:00
</div>
{{/if}}
</div>