mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 05:47:31 +08:00
94b60e62a2
Note this commit leaves out the biggest occurrence of the editor which is the post/topic composer. To avoid major breakage, this replaces it everywhere else it was used: * User preferences (About Me) * Admin Customizations > Text Content * Category Templates * Editing Queued Posts A future commit will replace the main composer with this editor and will remove the unused pagedown code.
27 lines
622 B
Handlebars
27 lines
622 B
Handlebars
<h3>{{model.title}}</h3>
|
|
<p class='description'>{{model.description}}</p>
|
|
|
|
{{#if model.markdown}}
|
|
{{d-editor value=model.value}}
|
|
{{/if}}
|
|
{{#if model.plainText}}
|
|
{{textarea value=model.value class="plain"}}
|
|
{{/if}}
|
|
{{#if model.html}}
|
|
{{ace-editor content=model.value mode="html"}}
|
|
{{/if}}
|
|
{{#if model.css}}
|
|
{{ace-editor content=model.value mode="css"}}
|
|
{{/if}}
|
|
|
|
<div class='controls'>
|
|
<button class='btn' {{action "saveChanges"}} disabled={{saveDisabled}}>
|
|
{{#if model.isSaving}}
|
|
{{i18n 'saving'}}
|
|
{{else}}
|
|
{{i18n 'save'}}
|
|
{{/if}}
|
|
</button>
|
|
{{#if saved}}{{i18n 'saved'}}{{/if}}
|
|
</div>
|