Hi - I have a <select> which I am allowing users to select text bodies which are automatically populating a textarea on the page - which they can then edit. This is working fine. However... once I add my tinyMCE editor to the textarea it doesn''t work - it won''t update. I am using the tinymce plug-in by Blake Watters. I know tinymce initiates the textarea or filters its values through its initiation, but curious how to execute this when I do my page update via my rjs file. Any help appreciated. -Adam --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
northband wrote:> Hi - > > I have a <select> which I am allowing users to select text bodies > which are automatically populating a textarea on the page - which they > can then edit. > > This is working fine. However... once I add my tinyMCE editor to the > textarea it doesn''t work - it won''t update. > > I am using the tinymce plug-in by Blake Watters. > > I know tinymce initiates the textarea or filters its values through > its initiation, but curious how to execute this when I do my page > update via my rjs file. > > Any help appreciated. > > -Adamtry page.call ( ''tinyMCE.setContent'', ''your content here'') obviously if your content is a ruby variable, drop the quotes This has problems if you have multiple editors on a page. I also noticed that I had some trouble unless I used the html text_area tag instead of the text_area helper, but ymmv. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
northband wrote:> Hi - > > I have a <select> which I am allowing users to select text bodies > which are automatically populating a textarea on the page - which they > can then edit. > > This is working fine. However... once I add my tinyMCE editor to the > textarea it doesn''t work - it won''t update. > > I am using the tinymce plug-in by Blake Watters. > > I know tinymce initiates the textarea or filters its values through > its initiation, but curious how to execute this when I do my page > update via my rjs file. > > Any help appreciated. > > -AdamHi Adam, I have a smiliar problem how did you update the text area? I have an id associated with text area and on click of a tree element, I intend to update teh content of text area somehow the position:top position:bottom does not work. Thanks, Sudhi -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Here''s an old (2006) of mine that has an example of getting TinyMCE''s javascript to work after some other javascript runs. Might be useful or it might be out of date. http://blog.katipo.co.nz/?p=24 On Thu, Mar 12, 2009 at 7:00 PM, Sudhi Kulkarni < rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > northband wrote: > > Hi - > > > > I have a <select> which I am allowing users to select text bodies > > which are automatically populating a textarea on the page - which they > > can then edit. > > > > This is working fine. However... once I add my tinyMCE editor to the > > textarea it doesn''t work - it won''t update. > > > > I am using the tinymce plug-in by Blake Watters. > > > > I know tinymce initiates the textarea or filters its values through > > its initiation, but curious how to execute this when I do my page > > update via my rjs file. > > > > Any help appreciated. > > > > -Adam > Hi Adam, > > I have a smiliar problem how did you update the text area? I have an id > associated with text area and on click of a tree element, I intend to > update teh content of text area somehow the position:top position:bottom > does not work. > > Thanks, > Sudhi > > > -- > Posted via http://www.ruby-forum.com/. > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---