diff --git a/public/js/common.js b/public/js/common.js index 6024044..8b7e553 100644 --- a/public/js/common.js +++ b/public/js/common.js @@ -425,6 +425,7 @@ function setEditorContent(content, isMarkdown, preview, callback) { */ if(MD) { MD.setContent(content); + MD.clearUndo && MD.clearUndo(); callback && callback(); } else { clearIntervalForSetContent = setTimeout(function() { @@ -722,8 +723,8 @@ function getObjectId() { //----------------------------------------- function resizeEditor(second) { + LEA.isM && MD && MD.resize && MD.resize(); return; - var ifrParent = $("#editorContent_ifr").parent(); ifrParent.css("overflow", "auto"); var height = $("#editorContent").height();