mirror of
https://github.com/leanote/desktop-app.git
synced 2025-10-15 15:41:19 +00:00
markdown editor clear undo status when toggle note
This commit is contained in:
@@ -433,6 +433,7 @@ function _setEditorContent(content, isMarkdown, preview, callback) {
|
||||
*/
|
||||
if(MD) {
|
||||
MD.setContent(content);
|
||||
MD.clearUndo();
|
||||
callback && callback();
|
||||
} else {
|
||||
clearIntervalForSetContent = setTimeout(function() {
|
||||
|
Reference in New Issue
Block a user