Hi All,
I have a “Submit NULL” issue when using FCKEditor 2.6.3. This happens rarely but it happens and I wasn’t able to reproduce the issue so far. Dose any of you had this kind of issue before?
I’m using the replace textarea feature from the editor, the code for it is:
On the “onsubmit” event of the form I have a JS validation function that as a first thing dose:
This code works just fine almost all the time with the mention that sometimes it submits NULL from htmlTextarea field.
Can anyone tell me if there is something wrong with the code? Or give me some suggestions that will prevent this issue in the future?
Thank you,
Darius
I have a “Submit NULL” issue when using FCKEditor 2.6.3. This happens rarely but it happens and I wasn’t able to reproduce the issue so far. Dose any of you had this kind of issue before?
I’m using the replace textarea feature from the editor, the code for it is:
var oFCKeditor = null; window.onload = function() { oFCKeditor = new FCKeditor( 'htmlTextarea' ) ; oFCKeditor.BasePath = '/scripts/fckeditor/'; oFCKeditor.Config['SkinPath'] = '/scripts/fckeditor/editor/skins/office2003/'; oFCKeditor.Config['FullPage'] = true ; oFCKeditor.Height = 225 ; oFCKeditor.ToolbarSet = 'Custom' ; oFCKeditor.ReplaceTextarea() ; }
On the “onsubmit” event of the form I have a JS validation function that as a first thing dose:
var oEditor = FCKeditorAPI.GetInstance( 'htmlTextarea' ) ; document.getElementById( 'htmlTextarea' ).value = oEditor.GetXHTML() ;
This code works just fine almost all the time with the mention that sometimes it submits NULL from htmlTextarea field.
Can anyone tell me if there is something wrong with the code? Or give me some suggestions that will prevent this issue in the future?
Thank you,
Darius