[opencms-dev] TinyMCE

Pavel Rath pavel.rath at vsb.cz
Fri May 29 07:19:53 CEST 2020


Hello,

 

you have to edit /system/workplace/editors/tinymce/opencms_plugin.js. In
this file, nearly at the end, there is tinymce.create function where you
have to add:

ed.settings.valid_children = "+body[style]";

 

Best regards,

Pavel Rath

 

From: opencms-dev-bounces at opencms.org <opencms-dev-bounces at opencms.org> On
Behalf Of ????????? ?????? ???????
Sent: Thursday, May 28, 2020 4:17 PM
To: opencms-dev at opencms.org
Subject: [opencms-dev] TinyMCE

 

Helo, All.

 

I'm using OpenCMS 10.5.4. I'd like to allow custom tags in HTMLWidget. I
tried to edit system/workplace/editors/tinymce/editor.jsp by adding 

valid_children : '+body[style]', in 
tinymce.init({ })
to allow tag style, but it had no results.
Can you help me and tell how can i customize TinyMCE in OpenCMS 10.5.4?
Andrew Dikansky
 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20200529/a6179845/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4703 bytes
Desc: not available
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20200529/a6179845/attachment.bin>


More information about the opencms-dev mailing list