I was using FCKeditor 2.2 across xajax and PHP, something like this:
<script>
function save(){
dc=document.frames['FCKeditor1___Frame'].document.frames['eEditorArea'].document.getElementsByTagName('body')[0].innerHTML;
document.frm.FCKeditor1.value=dc;
xajax_save_data(xajax.getFormValues(frm));
}
</script>
all this worked so well, but i changed to FCKeditor 2.3b, and I get the error :
'eEditorArea.document' is null or is not an object
<script>
function save(){
dc=document.frames['FCKeditor1___Frame'].document.frames['eEditorArea'].document.getElementsByTagName('body')[0].innerHTML;
document.frm.FCKeditor1.value=dc;
xajax_save_data(xajax.getFormValues(frm));
}
</script>
all this worked so well, but i changed to FCKeditor 2.3b, and I get the error :
'eEditorArea.document' is null or is not an object

RE: How can i integrate FCKeditor 2.3b with x
dc=frames['FCKeditor1___Frame'].window.frames['eEditorArea'].window.document.getElementsByTagName('body')[0].innerHTML;
I don'n use XAJAX, but I need ton pick up data from FCK in an AJAX application, and it works.
Thanks for the way, I did not know for the body[0]
Have a nice day
(sorry for my english)
RE: How can i integrate FCKeditor 2.3b with xajax
Thks...
RE: How can i integrate FCKeditor 2.3b with x
http://wiki.fckeditor.net/Developer%27s ... script_API
RE: How can i integrate FCKeditor 2.3b with xajax
It's Works
tnks so much...