<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
{font-family:inherit;
panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
pre
{mso-style-priority:99;
mso-style-link:"Form\00E1tovan\00FD v HTML Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
span.FormtovanvHTMLChar
{mso-style-name:"Form\00E1tovan\00FD v HTML Char";
mso-style-priority:99;
mso-style-link:"Form\00E1tovan\00FD v HTML";
font-family:Consolas;}
span.pln
{mso-style-name:pln;}
span.pun
{mso-style-name:pun;}
span.str
{mso-style-name:str;}
span.StylE-mailovZprvy25
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body bgcolor=white lang=CS link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US'>Hello,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US'>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:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US'>ed.settings.valid_children = "+body[style]";<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US'>Best regards,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US'>Pavel Rath<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='font-size:11.0pt;font-family:"Calibri",sans-serif'>From:</span></b><span style='font-size:11.0pt;font-family:"Calibri",sans-serif'> opencms-dev-bounces@opencms.org <opencms-dev-bounces@opencms.org> <b>On Behalf Of </b>????????? ?????? ???????<br><b>Sent:</b> Thursday, May 28, 2020 4:17 PM<br><b>To:</b> opencms-dev@opencms.org<br><b>Subject:</b> [opencms-dev] TinyMCE<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p><span style='font-family:"Calibri",sans-serif;color:black'>Helo, All.<o:p></o:p></span></p><p><span style='font-family:"Calibri",sans-serif;color:black'><o:p> </o:p></span></p><p><span style='font-family:"Calibri",sans-serif;color:black'>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 <o:p></o:p></span></p><pre style='vertical-align:baseline;font-variant-numeric: inherit;font-variant-east-asian: inherit;font-stretch: inherit;line-height:inherit;box-sizing: inherit;max-height: 600px;border-radius: 3px;overflow-wrap: normal;overflow:auto'><span class=pln><span style='font-family:"inherit",serif;color:#242729;border:none windowtext 1.0pt;padding:0cm'>valid_children </span></span><span class=pun><span style='font-family:"inherit",serif;color:#242729;border:none windowtext 1.0pt;padding:0cm'>:</span></span><span class=pln><span style='font-family:"inherit",serif;color:#242729;border:none windowtext 1.0pt;padding:0cm'> </span></span><span class=str><span style='font-family:"inherit",serif;color:#242729;border:none windowtext 1.0pt;padding:0cm'>'+body[style]'</span></span><span class=pun><span style='font-family:"inherit",serif;color:#242729;border:none windowtext 1.0pt;padding:0cm'>,</span></span><span style='font-family:Consolas;color:#242729'> in <o:p></o:p></span></pre><pre style='vertical-align:baseline'><span class=pln><span style='font-family:"inherit",serif;color:#242729;border:none windowtext 1.0pt;padding:0cm'>tinymce</span></span><span class=pun><span style='font-family:"inherit",serif;color:#242729;border:none windowtext 1.0pt;padding:0cm'>.</span></span><span class=pln><span style='font-family:"inherit",serif;color:#242729;border:none windowtext 1.0pt;padding:0cm'>init</span></span><span class=pun><span style='font-family:"inherit",serif;color:#242729;border:none windowtext 1.0pt;padding:0cm'>({</span></span><span style='font-family:Consolas;color:#242729'> })<o:p></o:p></span></pre><pre style='margin-bottom:12.0pt;vertical-align:baseline;font-variant-numeric: inherit;font-variant-east-asian: inherit;font-stretch: inherit;line-height:inherit;box-sizing: inherit;max-height: 600px;border-radius: 3px;overflow-wrap: normal;overflow:auto'><span style='font-family:Consolas;color:#242729'>to allow tag style, but it had no results.<o:p></o:p></span></pre><pre style='margin-bottom:12.0pt;vertical-align:baseline;font-variant-numeric: inherit;font-variant-east-asian: inherit;font-stretch: inherit;line-height:inherit;box-sizing: inherit;max-height: 600px;border-radius: 3px;overflow-wrap: normal;overflow:auto'><span style='font-family:Consolas;color:#242729'>Can you help me and tell how can i customize TinyMCE in </span><span style='font-size:12.0pt;font-family:"Calibri",sans-serif;color:#242729;background:white'>OpenCMS 10.5.4</span><span style='font-family:Consolas;color:#242729'>?<o:p></o:p></span></pre><pre style='margin-bottom:12.0pt;vertical-align:baseline;font-variant-numeric: inherit;font-variant-east-asian: inherit;font-stretch: inherit;line-height:inherit;box-sizing: inherit;max-height: 600px;border-radius: 3px;overflow-wrap: normal;overflow:auto'><span style='font-family:Consolas;color:#242729'>Andrew Dikansky<o:p></o:p></span></pre><pre style='vertical-align:baseline'><span style='font-family:Consolas;color:#242729'><o:p> </o:p></span></pre><p><span style='font-family:"Calibri",sans-serif;color:black'><o:p> </o:p></span></p></div></body></html>