How can I pull up the content from the main window of the editor to the calling parent?
The following returns null
And since the iframe doesn't have the name attribute I can't call it with that, which is the preferred way. Also, I've tried this to no avail:
The following returns null
window.frames[0].document.getElementById('xEditingArea').innerhtml
And since the iframe doesn't have the name attribute I can't call it with that, which is the preferred way. Also, I've tried this to no avail:
document.getElementById('nameoffield___Frame').innerhtml
Re: Get innerHTML of #xEditingArea for parent window
Re: Get innerHTML of #xEditingArea for parent window
Re: Get innerHTML of #xEditingArea for parent window
Why do you want to use the DOM instead of using the API?
Re: Get innerHTML of #xEditingArea for parent window
I think what alfonsoml is trying to say (without actually saying it) is that the api has a function to get the content of the editor and the code to do this is as follows:
This was found here:
http://docs.fckeditor.net/FCKeditor_2.x ... Script_API
and I also found another topic discussing this while looking for the same thing:
viewtopic.php?f=6&t=10492&p=27862&hilit=+ajax#p27862
Re: Get innerHTML of #xEditingArea for parent window