fixes change editor glitch

This commit is contained in:
Mo Bitar
2017-03-10 14:31:17 -06:00
parent a8eab8aab7
commit f05ddb5cd1
3 changed files with 5 additions and 1 deletions

View File

@@ -51,6 +51,7 @@ angular.module('app.frontend')
}.bind(this));
this.setNote = function(note, oldNote) {
this.noteReady = false;
var currentEditor = this.customEditor;
this.customEditor = null;
this.showExtensions = false;
@@ -60,6 +61,7 @@ angular.module('app.frontend')
var setEditor = function(editor) {
this.customEditor = editor;
this.postNoteToExternalEditor();
this.noteReady = true;
}.bind(this)
var editor = this.editorForNote(note);
@@ -75,6 +77,7 @@ angular.module('app.frontend')
}
} else {
this.customEditor = null;
this.noteReady = true;
}
if(note.safeText().length == 0 && note.dummy) {