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", ''<textarea
cols="40"
id="article_body" name="article[body]"
rows="4">"#{@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?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---