* fix a bug for the content of kindeditor is none in post by jquery form.

This commit is contained in:
wangyidong
2013-07-12 05:43:40 +00:00
parent d4818f9ea1
commit 048b0d7713
2 changed files with 5 additions and 9 deletions
+3 -7
View File
@@ -44,7 +44,7 @@ $(document).ready(function()
KindEditor.ready(function(K)
{
editor = K.create('#' + editorID,
keEditor = K.create('#' + editorID,
{
items:editorTool,
filterMode:true,
@@ -52,12 +52,8 @@ $(document).ready(function()
urlType:'relative',
uploadJson: createLink('file', 'ajaxUpload'),
allowFileManager:true,
langType:'<?php echo $editorLang?>'
});
$('form').submit(function()
{
K.sync('#'+editor.id);
langType:'<?php echo $editorLang?>',
afterBlur: function(){this.sync();}
});
});
})
+2 -2
View File
@@ -79,8 +79,8 @@ $.extend(
/* Call ajaxSubmit to sumit the form. */
form.submit(function()
{
$(this).ajaxSubmit(options);
return false; // Prevent the submitting event of the browser.
$(this).ajaxSubmit(options);
return false; // Prevent the submitting event of the browser.
});
},