[Xsltforms-support] Un-escaped ampersands in Tiny MCE RTF editor themes
Brought to you by:
alain-couthures
From: Dan M. <dan...@gm...> - 2012-03-27 17:09:04
|
Hi Everyone, First of all, a congrats to Alain for getting the 1.0 release candidate for XSLTForms 1.0 out! This is a big milestone and I want to let everyone know how cool this is. I do have one very minor issue to point out to people that are using native XML databases like eXist and loading XSLTForms directly into a database collection. The 1.0 version of XSLTForms includes a version of the Tiny MCE editor (very cool actually) for doing rich-text editing. Unfortunately in these files some of the "themes" have un-escaped ampersands like this: in xsltforms/scripts/tinymce_3.4.6/themes/advanced/color_picker.htm on line 25: onmousemove="if (isMouseDown && isMouseOver) When XSLTForms files with this syntax are loaded into eXist using an Ant "store" script the unescaped ampersands will cause the load to fail. The solution is to escape the files like this: onmousemove="if (isMouseDown && isMouseOver) Note that this is really in the MCE code, not Alain's code. But this is something to consider. Since I assume that the MCE code base may change in the future we (in the eXist community at least) may want to share a general Ant pre-processor script that does a global replace before the files are automatically loaded into a database. Just a consideration. Anyway a big "congrats" to Alain and others that are working on this. - Dan |