CF8 - 8.0.17 - tinymce editor utf8

rbock 18 Nov, 2023
Hi Max... on CF7 I added "entity_encoding: 'raw'," to the g3.tinymce.js file. Where/How do I add this to CF8?

How stupid... All data currently stored cannot be used. That's a few night shifts for me...
Max_admin 18 Nov, 2023
tinymce encodes the data so you may just need to decode it before it goes to the database ?

you may also run a php script to update all the data stored

the file to be changed is nui.tinymce.min.js
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
rbock 18 Nov, 2023
add entity_encoding: 'raw' to tiny.init - but how/where exactly
Max_admin 18 Nov, 2023
in the tinymceSettings variable

but as I noted, better leave the default editor settings and just decode the result with PHP
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
rbock 18 Nov, 2023
Hm... :-(
Max_admin 19 Nov, 2023
Answer
I think the editor does it correctly, it encodes the characters because when you display them on the front page you just decode them, it's just like inserting <html> code in the text

so all you need to do is to decode after reading, or decode before saving, no need to change the editor settings

but I can still add a new setting to override the editor if it's necessary for you
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
rbock 19 Nov, 2023
Hi Max... On CF7 I simply added entity_encoding: 'raw', in the g3.tinymce.js file. If you add that as an option, then you're welcome. But it's enough for me if you tell me where to insert it into the nui.tinymce.min.js file. I have already adapted this file. I only need toolbar 1 with bold bullist numlist.
rbock 19 Nov, 2023
Furthermore, my greatest wish in this regard is to use the JCE. I pay for this one and find it much more pleasant than the MCE.
Max_admin 19 Nov, 2023
to insert the code you can do it at the first occurrence of:
var tinymceSettings = {


but it will be overwritten by the update of course

so you do not like decoding the HTML solution ? that's how it is usually done
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
rbock 19 Nov, 2023
Well, it works for now. Thanks, Max...
Post a Reply