when I submit the form, the CKEditor's data is not set to original textarea,why?
so,I write some code like the following,but when I clicked the submit link, the blur event is fireed after submit!!! I must clicked other input after I edit the ckeditor area ,before I clicked the submit link.
var editor = CKEDITOR.replace( editid, ckConfig); editor.on( 'blur', function( e ) { var editorID=editid; console.log('=======blur======='); var isDirty = e.editor.checkDirty() ; if (isDirty) { var tempDatas= e.editor.getData(); if(tempDatas){ var oriObj=document.getElementById(editorID); if(oriObj){ oriObj.value=tempDatas; } } }; });
the following is FB;s log, the blur event fired after submit...
http://mycvex.cvtest.com/action/widgets/save 200 ok 128ms =======blur======= GET http://mycvex.cvtest.com/pg/view/462? 200 OK 97ms