Re: [Xsltforms-support] TinyMCE in a repeat
Brought to you by:
alain-couthures
From: Alain C. <ala...@ag...> - 2012-09-25 19:50:02
|
Hello Mark, > I'm using what I assume is the stable release, 1.0RC. (So far I'm impressed, having used FormFaces some years ago). You could also use the trunk builds because they are quite stable, too ;-) > My problem is attempting to add a TinyMCE textarea within a repeating element: my code is based on the example at http://www.agencexml.com/xsltforms/tinymce.xml. > > The first instantiation of the repeated element is fine. > > I use a trigger which inserts the new element set in the usual way - the TinyMCE textarea is a leaf element in that set. > > An insert creates the new elements with TinyMCE populating the textarea but the text-area UI is grey and unresponsive. > > If I save and reload the instance data the TinyMCE in the latest insert is now active. > > I guess that TinyMCE needs to be initialised and does it when the page loads without conflict between multiple instances of itself. Is there any way to make it initialise on insert? There was an issue about TinyMCE been initialized more than once so, probably, the corresponding fix is not good for your situation. Could you please send a minimal test case? Thanks! -Alain |