I am basically looking a preview function of a page that has its content created in the fckeditor.
I know how to use the DOM using document.getElementById('Detail$1').value or window.opener.document.getElementById('Detail$1').value
I basically need to view how this content will look on the site before it is committed to the db.
Any comments or suggestions would be helpful - I have viewed some of the Ajax posts but have not found an answer to my problem.
Cheers for any help.
I know how to use the DOM using document.getElementById('Detail$1').value or window.opener.document.getElementById('Detail$1').value
I basically need to view how this content will look on the site before it is committed to the db.
Any comments or suggestions would be helpful - I have viewed some of the Ajax posts but have not found an answer to my problem.
Cheers for any help.
Re: How do I get the current content of FCKeditor using javascri
I am also looking for an answer similar to this - I want to get the current content from an editor in another frame. I want to "catch" this data from another frame and submit it to the database. I work with tabs in my submit, so I need to get data from several IFRAMEs like:
tab2.document.editor.FCKeditor1.value
Any help would really be appreciated very much.
Thank you
Re: How do I get the current content of FCKeditor using javascri
The tab2 is the name of the frame.
The FCKeditor1 is the name of the editor instance in frame tab2.
You might want to use parent.open or something, to get an instance from a pop-up.
Good luck.