I need to access the contents of the editor via javascript. The reason is that I am using the editor in a pop-up window and want to update a field in the parent window when submitting (instead of submitting).
opener.document.form1.<%=parentField%>.value = document.FCKEditor_Field.value;
So, what do I replace "FCKEditor_Field" with in order to get the current html value?
Thank you!
opener.document.form1.<%=parentField%>.value = document.FCKEditor_Field.value;
So, what do I replace "FCKEditor_Field" with in order to get the current html value?
Thank you!
RE: How to get editor content via JavaScript?
I wrote all this in another thread, but just so that you don't miss out on it:-
Oh, it's alright... Just figured it out.
I did this; open a new window from a custom button, then in the template that opens in this window, I add a script block and entered
document.write (parent.opener.document.all.objContent.DOM.body.innerHTML) ;
which then copied all of the current HTML into the template design.
Quite easy really