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
I am using IE
<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
I am using IE
RE: How can I use FCKeditor 2.3b with xajax/ajax
RE: How can I use FCKeditor 2.3b with xajax/ajax
<script language="javascript">
function save(){
var oIntro = FCKeditorAPI.GetInstance('intro') ;
var dc1 = oIntro.GetHTML();
document.formname.intro.value=dc1;
xajax_save_new(xajax.getFormValues('formname'));
}
</script>
RE: How can I use FCKeditor 2.3b with xajax/a
Thanks much