<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 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Sprechblasentext Zchn";
margin:0cm;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";}
span.E-MailFormatvorlage17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.SprechblasentextZchn
{mso-style-name:"Sprechblasentext Zchn";
mso-style-priority:99;
mso-style-link:Sprechblasentext;
font-family:"Tahoma","sans-serif";}
.MsoChpDefault
{mso-style-type:export-only;}
@page Section1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.Section1
{page:Section1;}
-->
</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 lang=DE link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span lang=EN-GB>Hi list,<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>until OpenCms 7.5.0 it was possible to
remove buttons from the HTMLWidget (FCKEditor) by changing the following lines
in the file \system\workplace\editors\fckeditor\configwidget.js:<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>...<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>toolbar.append("[");<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>toolbar.append("'CharsCounter','Undo','Redo','-','SelectAll','RemoveFormat'");<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>toolbar.append(",'-','Cut','Copy','Paste','PasteText','PasteWord'");<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>toolbar.append(",'-','Bold','Underline','StrikeThrough','-','Subscript','Superscript'");<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>toolbar.append("],[");<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>toolbar.append("'JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'");<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p>
<p class=MsoNormal>toolbar.append(",'-','OrderedList','UnorderedList'");<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><span lang=EN-GB>toolbar.append(",'-','Outdent','Indent'");<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>toolbar.append("]");<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>...<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>I wanted to do the same in 7.5.1 was
(almost) shocked by seeing that these line are replaced by this lines:<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>...<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>FCKConfig.ToolbarSets["OpenCmsWidget"]
= [<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>
<%= option.getButtonBar(CmsFCKEditorWidget.BUTTON_TRANSLATION_MAP,
",") %><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>];<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>...<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>I looked up the method CmsHtmlWidgetOption #getButtonBar()
and found the comment “It may be necessary to write your own method to
generate the button bar string for a specific editor widget.”<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>So it seems, that there is no possibility
to remove buttons from the editor widget within a configuration file in the OpenCms
VFS.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>Can anybody (from Alkacon) confirm this? Or
even better give me a hint if it is still possible somehow.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>Thanks in advance<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>Regards<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>Kai</span><o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
</div>
</body>
</html>