diff --git a/public/javascripts/create_kindeditor.js b/public/javascripts/create_kindeditor.js index fb5db05b..822e3f7f 100644 --- a/public/javascripts/create_kindeditor.js +++ b/public/javascripts/create_kindeditor.js @@ -206,8 +206,10 @@ function sd_check_editor_form_field(params){ if(params.content.isEmpty()){ result=false; } + console.log(params.content) if(params.content.html()!=params.textarea.html() || params.issubmit==true){ params.textarea.html(params.content.html()); + params.content.sync(); if(params.content.isEmpty() || /^\s*<\w*\s*\w*\=\"\w*\"\s*\w*\=\"\w*\:\s*\#\d*\;\s*\w*\-\w*\:\s*\w*\;\"\>[\u4e00-\u9fa5]*<\/\w*\>\s*$/.test(params.textarea.html())){ params.contentmsg.html('内容不能为空');