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:
parent
f73c2f13d4
commit
bc28b36627
2 changed files with 3 additions and 4 deletions
|
@ -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');
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue