0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-25 10:40:28 +01:00
discourse-custom-wizard/assets/javascripts/wizard/templates/components/wizard-composer-editor.hbs
2021-01-19 18:50:37 +11:00

39 Zeilen
1,1 KiB
Handlebars

{{d-editor
tabindex=field.tabindex
value=composer.reply
placeholder=replyPlaceholder
previewUpdated=(action "previewUpdated")
markdownOptions=markdownOptions
extraButtons=(action "extraButtons")
importQuote=(action "importQuote")
showUploadModal=(action "showUploadModal")
togglePreview=(action "togglePreview")
validation=validation
loading=composer.loading
showLink=showLink
wizardComposerEvents=true
fieldId=field.id
disabled=disableTextarea
outletArgs=(hash composer=composer editorType="composer")}}
{{input
class="wizard-composer-upload hidden-upload-field"
disabled=isUploading
type="file"
accept=allowedFileTypes
multiple=true}}
{{#if showHyperlinkBox}}
{{wizard-composer-hyperlink
addLink=(action 'addLink')
hideBox=(action 'hideBox')}}
{{/if}}
{{#if isUploading}}
<div id="file-uploading">
{{loading-spinner size="small"}}<span>{{wizard-i18n "upload_selector.uploading"}} {{uploadProgress}}%</span>
{{#if isCancellable}}
<a href id="cancel-file-upload" {{action "cancelUpload"}}>{{d-icon "times"}}</a>
{{/if}}
</div>
{{/if}}