1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-21 06:09:42 +02:00

Make Markdown editor use Ember input helper

This commit is contained in:
Harvey Kandola 2019-01-09 11:03:58 +00:00
parent f73c2f13d4
commit bc28b36627
2 changed files with 3 additions and 4 deletions

View file

@ -33,7 +33,7 @@ export default Component.extend({
init() {
this._super(...arguments);
let body = (is.not.undefined(this.get('meta'))) ? this.get('meta.rawBody').trim() : '';
this.set('pageBody', body);
this.set('pageBody', body);
},
didInsertElement() {

View file

@ -17,12 +17,11 @@
<div class="section-markdown-editor">
{{#if editMode}}
<textarea id={{editorId}} class="mousetrap">{{{pageBody}}}</textarea>
{{textarea id=editorId class="mousetrap" value=pageBody}}
{{else}}
<div class="mousetrap wysiwyg section-markdown-preview">
{{{pagePreview}}}
</div>
{{/if}}
</div>
{{/section/base-editor-inline}}