Hello,
In my html page, I have an old value in edit area textof FCKeditor, I modified the text and after I want by javascript to acces to this new content.
I don't succeed
For example forms[0].elements['FCKeditor'].value return always the old value but not the current value display in the editor.
When I submit the page all is Ok, The new value is in $_POST['FCKeditor'] without Pb
One idea ?
Thank
In my html page, I have an old value in edit area textof FCKeditor, I modified the text and after I want by javascript to acces to this new content.
I don't succeed
For example forms[0].elements['FCKeditor'].value return always the old value but not the current value display in the editor.
When I submit the page all is Ok, The new value is in $_POST['FCKeditor'] without Pb
One idea ?
Thank
RE: access to a current text displayed
In fact, it's necessary to use FCKeditorAPI and after to interact with the created instance like this :
var oEditor = FCKeditorAPI.GetInstance('FCKeditor') ;
alert(oEditor.GetXHTML());
RE: access to a current text displayed
Thanks, John