操作系统: win7
浏览器版本: ie10
KindEditor版本: 4.1.7
BUG再现步骤:
1.
<script src="../js/jquery-1.9.1.min.js"></script>
<script charset="utf-8" src="dadeeditor/kindeditor-min.js"></script>
<script charset="utf-8" src="dadeeditor/lang/zh_CN.js"></script>
<script>
KindEditor.ready(function(K) {
var editor1 = K.create('textarea[name="content"]', {
uploadJson : '../asp/upload_json.asp',
fileManagerJson : '../asp/file_manager_json.asp',
allowFileManager : true
});
});
</script>
2.
<script>
$("[name='submit']").click(function(e) {
editor1.sync();
//e.preventDefault();
if($("#newstitle").val().length<1)
{
alert('请输入新闻标题');
return false;
}
else if ($("#content").val().length<1)
{
alert('请输入新闻内容');
return false;
}
else
{
$("#form1").submit();
}
});
</script>
3.
期望结果: sync()以后提交表单