clear undo
This commit is contained in:
@ -425,6 +425,7 @@ function setEditorContent(content, isMarkdown, preview, callback) {
|
|||||||
*/
|
*/
|
||||||
if(MD) {
|
if(MD) {
|
||||||
MD.setContent(content);
|
MD.setContent(content);
|
||||||
|
MD.clearUndo && MD.clearUndo();
|
||||||
callback && callback();
|
callback && callback();
|
||||||
} else {
|
} else {
|
||||||
clearIntervalForSetContent = setTimeout(function() {
|
clearIntervalForSetContent = setTimeout(function() {
|
||||||
@ -722,8 +723,8 @@ function getObjectId() {
|
|||||||
|
|
||||||
//-----------------------------------------
|
//-----------------------------------------
|
||||||
function resizeEditor(second) {
|
function resizeEditor(second) {
|
||||||
|
LEA.isM && MD && MD.resize && MD.resize();
|
||||||
return;
|
return;
|
||||||
|
|
||||||
var ifrParent = $("#editorContent_ifr").parent();
|
var ifrParent = $("#editorContent_ifr").parent();
|
||||||
ifrParent.css("overflow", "auto");
|
ifrParent.css("overflow", "auto");
|
||||||
var height = $("#editorContent").height();
|
var height = $("#editorContent").height();
|
||||||
|
Reference in New Issue
Block a user