I have been scratching my head about this for a few hours now, and I cannot figure it out.
I am needing to get get the contents of the wysiwyg editor and put that into a variable. I have gotten it to work for Mozilla browsers, as getting the contents from the iframe was easy:
var summarytext = $('iframe:first').contents()[0].documentElement.innerHTML; var bodytext = $('iframe:last').contents()[0].documentElement.innerHTML;
But if the browser is not Mozilla, I need to get the contents from the editable region that the text is being typed into. I assumed that it was a div, but I have tried just about everything and I keep returning undefined.
So, could anyone shed some light onto this for me? Please?