MD.setContent("");, 初始化md editor; 如果当前没有笔记, 则有可能会卡死

This commit is contained in:
life
2015-12-06 15:26:39 +08:00
parent 6b97ad0fc9
commit 72c1acf245
2 changed files with 3 additions and 1 deletions

View File

@@ -16879,6 +16879,8 @@ define('core',[
// Refresh the editor (even if it's the same file)
core.initEditor(desc);
};
MD.setContent("");
// MD.setContent("");
MD.getContent = function () {
if(!window.lightMode) {
return aceEditor.getValue();

File diff suppressed because one or more lines are too long