* fix a bug for the content of kindeditor is none in post by jquery form.
This commit is contained in:
@@ -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();}
|
||||
});
|
||||
});
|
||||
})
|
||||
|
||||
Vendored
+2
-2
@@ -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.
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user