[EMAIL PROTECTED] schrieb: > Really this is my first attempt at using these technologies in web > development at all, so please bear with me if i sound like an idiot =] > > I have a page that has two RemoteForms, and a table form with the > turbotinymce widget in it. The first RemoteForm sections_form has a > select box in it that when submitted i want it to update the options > for the select boxes in the second RemoteForm constants_form. This is > working fine (although i don't know if my methods of rendering the form > and sending the string to the template are the right way of doing it), > what fails is when i submit the second RemoteForm data (constants_form) > to the third form (TableForm) translate_form, the data all populates in > the textarea's correctly but the TinyMCE "formated" textarea that was > there in the previous two steps changes to a normal textarea field. > > So is there a flaw in my methodology in TG here, or is this something i > should take up with the TinyMCE folks? > I'm not really an expert on TinyMCE, but the answer seems obvious to me:
TinyMCE converts textareas or divs to richtext editors when the document is loaded. This is done by calling the tinyMCE.init() function with the appropriate settings.. Once the form gets reloaded via AJAX it the init() function needs to be called again. ( Although you might want to take another approach since the committing of the form is just a state transfer from the client to the server and does not result in any change that needs to be reflected back to client...) -- Sven --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears -~----------~----~----~----~------~----~------~--~---

