Hi everyone.
I have a CMS that uses a fckeditor-like WSIWYG setup. I’m writing an
ajax action that toggles the view between WSIWYG and a textarea that
shows the actual html.
To do that, I need to pull the existing content out of an iframe on
the page and reinsert it into the textarea.
page.assign(@content, $(‘edit’).contentWindow.document.body.innerHTML)
page.replace_html “texteditor”, ‘"#{@content}" </
textarea>’
It’s giving me syntax errors on the $(‘edit’) line, and I’m not at all
convinced that page.assign is what I’m looking for.
Help?