【发布时间】:2011-07-23 11:51:42
【问题描述】:
我正在使用 CKeditor、Jquery 和插件 jquery 表单。
CKEDITOR.replace( 'comment-textarea' );
function CKupdate(){
for ( instance in CKEDITOR.instances )
CKEDITOR.instances[instance].updateElement();
}
$(document).ready(function(){
var options = {
success: function (html) {
$('#comments').append(html);
},
clearForm: true
};
$('#formcomments').submit(function() {
CKupdate();
});
$('#formcomments').ajaxForm(options);
});
我用的是clearForm: true,但是提交表单后,没有清除textarea Ckeditor的值。如何清除textarea ckeditor?
【问题讨论】:
-
所以你要在提交权后清除fck
标签: jquery ajax forms ckeditor