fix markdown editor
This commit is contained in:
@ -303,6 +303,7 @@ function setEditorContent(content, isMarkdown, preview) {
|
||||
}
|
||||
} else {
|
||||
$("#wmd-input").val(content);
|
||||
$("#wmd-preview").html(""); // 防止先点有的, 再点tinymce再点没内容的
|
||||
if(!content || preview) { // 没有内容就不要解析了
|
||||
$("#wmd-preview").html(preview).css("height", "auto");
|
||||
ScrollLink.onPreviewFinished(); // 告诉scroll preview结束了
|
||||
|
Reference in New Issue
Block a user