1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-24 15:49:44 +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() {
@ -67,7 +67,7 @@ export default Component.extend({
dragDrop: false,
extraKeys: {"Enter": "newlineAndIndentContinueMarkdownList"}
});
CodeMirror.commands.save = function(/*instance*/){
Mousetrap.trigger('ctrl+s');
};