Re: [Xsltforms-support] Rich Text Editor
Brought to you by:
alain-couthures
|
From: Alain C. <ala...@ag...> - 2023-12-31 13:00:47
|
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<div>
Hi Winona,
</div>
<div class="default-style">
<div class="default-style">
</div>
<div class="default-style">
Sorry for the delay.
</div>
<div class="default-style">
</div>
</div>
<div class="default-style">
Please have a look at the tinymce.xml sample (<a href="https://github.com/AlainCouthures/declarative4all/blob/master/public/samples/tinymce.xml)">https://github.com/AlainCouthures/declarative4all/blob/master/public/samples/tinymce.xml)</a>.
</div>
<div class="default-style">
</div>
<div class="default-style">
Because of compatibility issues between tinymce versions, it is required to add data-uri and data-version attributes to allow XSLTForms to properly manage the rich text editors. In the sample:
<br><script type="text/javascript" src="js/tinymce_4.5.3/tinymce.min.js" data-uri="http://www.tinymce.com" data-version="4.5.3">/* */</script>
</div>
<div class="default-style">
</div>
<div class="default-style">
In next release, XSLTForms will also check "tinymce.<span class="hljs-property">majorVersion</span> + <span class="hljs-string">'.'</span> + tinymce.<span class="hljs-property">minorVersion", as suggested by ChatGPT ;-)</span>
</div>
<div class="default-style">
</div>
<div class="default-style">
<span class="hljs-property">After upgrading the repeat test case accordingly, it works as expected for me!</span>
</div>
<div class="default-style">
</div>
<div class="default-style">
Thank you for your feedback!
</div>
<div class="default-style">
</div>
<div class="default-style">
--Alain
</div>
<blockquote type="cite">
<div>
Le 17/12/2023 19:30 CET, Winona Salesky <wsa...@gm...> a écrit :
</div>
<div>
</div>
<div>
</div>
<div dir="ltr">
Hi All,
<br>
<div>
I'm looking into adding a rich text editor to my textarea's. I was trying to experiment with this example:
</div>
<div>
<a href="http://www.agencexml.com/xsltforms/tinymce.xml">http://www.agencexml.com/xsltforms/tinymce.xml</a>
</div>
<div>
</div>
<div>
But have had some trouble getting it working. My use case would include multiple textarea's almost all of them appearing in a nested repeat structure. I found this on the list (<a href="https://sourceforge.net/p/xsltforms/mailman/xsltforms-support/thread/A6AB89C8-E8E0-49C3-965F-65464934B94D%40basex.org/#msg30316903">https://sourceforge.net/p/xsltforms/mailman/xsltforms-support/thread/A6AB89C8-E8E0-49C3-965F-65464934B94D%40basex.org/#msg30316903</a>) which suggests repeats could be a problem. Has this been solved? Has anyone integrated a text editor into their XForms? I can mock up a simplified example of what I am trying to do if that would be useful, but I'm mostly looking for examples for how someone else may have solved this issue.
</div>
<div>
</div>
<div>
Thanks!
</div>
<div>
-Winona
</div>
<div>
</div>
</div> _______________________________________________ Xsltforms-support mailing list Xsl...@li... https://lists.sourceforge.net/lists/listinfo/xsltforms-support
</blockquote>
</body>
</html>
|