[Xsltforms-support] XSLTForms and TinyMCE (v 4.5.2 doesn't work; 4.3.12 does; ...)
Brought to you by:
alain-couthures
From: C. M. Sperberg-M. <cm...@bl...> - 2017-01-09 14:41:46
|
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 cm...@bl... http://www.blackmesatech.com ******************************************** |