Commit e744ed9c authored by Vanessa's avatar Vanessa

.

parent 5a1a766b
...@@ -749,6 +749,8 @@ admin.editors.CodeMirror = { ...@@ -749,6 +749,8 @@ admin.editors.CodeMirror = {
*/ */
setContent: function (id, content) { setContent: function (id, content) {
this[id].setValue(content); this[id].setValue(content);
var $preview = $("#" + id).parent().find(".markdown-preivew");
$preview.find(".markdown-preview-main").html(content);
}, },
/* /*
* @description 销毁编辑器值 * @description 销毁编辑器值
...@@ -2286,6 +2288,13 @@ admin.pageList = { ...@@ -2286,6 +2288,13 @@ admin.pageList = {
} else { } else {
this.add(); this.add();
} }
if (admin.pageList.currentEditorType !== Label.editorType) {
admin.editors.pageEditor.remove();
admin.pageList.currentEditorType = Label.editorType;
admin.editors.pageEditor.init(Label.editorType);
}
}, },
/* /*
* 调换顺序 * 调换顺序
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment