The current version of TinyMCE is now 4.5.3 and I have succeeded in 
integrating it in XSLTForms.

It appears that, with this version, the editor is not initialized enough 
when XSLTForms first tries to set its content. I had to add a try/catch 
statement to support this new behavior.

This will be committed as soon as possible.

Alain

Le 1/9/2017 à 3:40 AM, C. M. Sperberg-McQueen a écrit :
> Short summary:  the current version of TinyMCE (4.5.2)
> appears not to work with XSLTForms; the most
> recent version of TinyMCE to work with XSLTForms (638)
> appears to be 4.3.12 of 10 May 2016.
>
> Details:  when I copy the demo file at [1] and point it to
> a local copy of XSLTForms version 638, into which I
> have installed TinyMCE 4.5.2 in the scripts/ subdirectory,
> I get an error message along the lines of
>
>    TypeError: undefined is not an object (evaluating ‘r.getRng()’)
>
> Both Safari 10.0 and Firefox 50.1.0 (under OS X 10.11.6)
> exhibit this problem and complain about the same thing.
>
> TinyMCE 4.0.21, which is used by [1], does work, but is
> not listed among the downloadable versions of TinyMCE
> at [2].
>
> A binary search through the versions between the two
> suggests that versions up through 4.3.12 work with XSLTForms
> 638, and versions from 4.3.13 onward fail.  (Of course,
> I haven’t tried them all, but 4.10, 4.2.7, 4.3.9, and 4.3.12
> all worked; 4.5.2, 4.5.1, 4.4.0, and 4.3.13 all failed.)  The
> testing done was very shallow:  in all the ‘failure’ cases,
> the ‘Loading’ message never went away, and the error
> console showed an error (not always the one given above);
> in the ‘success’ cases, the message went away and I
> was successfully able to bold and unbold some characters.
>
> If at some point Alain tries to make XSLTForms work with
> current versions of TinyMCE, perhaps knowing when things
> broke will help.  (And in the meantime, for users of XSLTForms
> who use TinyMCE, it may be helpful to know which versions
> work and which don’t.)
>
> In the meantime, if anyone has experience customizing
> TinyMCE and using the customization in XSLTForms, and
> has written up their experiences, I’d be grateful for a link
> to the writeup.
>
> -C. M. Sperberg-McQueen
>
> [1] http://www.agencexml.com/xsltforms/tinymce.xml
> [2] https://www.tinymce.com/download/older-releases/
>
> ********************************************
> C. M. Sperberg-McQueen
> Black Mesa Technologies LLC
> [email protected]
> http://www.blackmesatech.com
> ********************************************
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> _______________________________________________
> Xsltforms-support mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/xsltforms-support



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Xsltforms-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xsltforms-support

Reply via email to