fix markdown editor

This commit is contained in:
life
2014-05-10 16:50:03 +08:00
parent 0e45f2c17f
commit f0b4012118
6 changed files with 4 additions and 187 deletions

View File

@ -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结束了