markdown editor clear undo status when toggle note

This commit is contained in:
life
2015-11-12 11:19:01 +08:00
parent 43cc6ac0f3
commit 367eda7bfd
3 changed files with 23 additions and 13 deletions

View File

@@ -433,6 +433,7 @@ function _setEditorContent(content, isMarkdown, preview, callback) {
*/
if(MD) {
MD.setContent(content);
MD.clearUndo();
callback && callback();
} else {
clearIntervalForSetContent = setTimeout(function() {