diff --git a/gui/app/components/section/markdown/type-editor.js b/gui/app/components/section/markdown/type-editor.js index 890187fe..b9b9baaf 100644 --- a/gui/app/components/section/markdown/type-editor.js +++ b/gui/app/components/section/markdown/type-editor.js @@ -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() { @@ -67,7 +67,7 @@ export default Component.extend({ dragDrop: false, extraKeys: {"Enter": "newlineAndIndentContinueMarkdownList"} }); - + CodeMirror.commands.save = function(/*instance*/){ Mousetrap.trigger('ctrl+s'); }; diff --git a/gui/app/templates/components/section/markdown/type-editor.hbs b/gui/app/templates/components/section/markdown/type-editor.hbs index c521fd64..3addc2ec 100644 --- a/gui/app/templates/components/section/markdown/type-editor.hbs +++ b/gui/app/templates/components/section/markdown/type-editor.hbs @@ -17,12 +17,11 @@
{{#if editMode}} - + {{textarea id=editorId class="mousetrap" value=pageBody}} {{else}}
{{{pagePreview}}}
{{/if}}
- {{/section/base-editor-inline}}