[opencms-dev] OpenCms 7.5.1: How to remove buttons fromthe FCKeditor in XMLContents
Andreas Zahner (Mailing list)
a.zahner at alkacon.com
Wed Jan 20 16:02:25 CET 2010
Hi Edwin,
therefore you have to configure your own button bar, preferrably in
opencms-vfs.xml.
For each button that is already in the
org.opencms.widgets.CmsHtmlWidgetOption.BUTTONBAR_DEFAULT constant, you
have to use the exact name used there. Insert your additional buttons at
the desired position. It would be a good idea to copy the contants value
and enhance this.
Important: All buttons that are possible should be part of a button bar
layout definition; otherwise they will not be shown at all.
Example:
buttonbar:[;source;-;undo;redo;-;find;replace;-;selectall;removeformat;-;cut;copy;paste;-;FontName;FontSize;]
... (even more buttons)
Hth!
--
Regards,
Andreas.
-------------------
Andreas Zahner
Alkacon Software GmbH - The OpenCms Experts
http://www.alkacon.com - http://www.opencms.org
Edwin Chiu schrieb:
> Hi Andreas,
>
> You've given me part of my answers.
>
> For hiding buttons, I can make use of
> "hidebuttons:bold;italic;underline;strikethrough".
>
> How about adding buttons like FontName, FontSize or TextColor? Is it need to
> add "configuration" attributes in HtmlWidget in opencms-vfs.xml?
>
> Thanks
> Edwin
>
>
> Andreas Zahner wrote:
>> Kai,
>>
>> from 7.5.1 on, we enhanced the HTML widget configuration options. There
>> is a new option to hide buttons, e.g. hidebuttons:bold;italic;underline
>>
>> It is also now possible to set global widget configurations in the
>> opencms-vfs.xml file by adding a "configuration" attribute to the
>> "widget" elements. As long as there is no individual confiduration set
>> in a XSD, the global configuration is then used.
>>
>> Have a closer look at the JavaDoc of
>> org.opencms.widgets.CmsHtmlWidgetOption to learn about the configuration
>> details.
>>
>> Regards,
>> Andreas.
>>
>> -------------------
>> Andreas Zahner
>>
>> Alkacon Software GmbH - The OpenCms Experts
>> http://www.alkacon.com - http://www.opencms.org
>>
>> Schliemann, Kai schrieb:
>>> Hi Kidd,
>>> thanks for your answer.
>>> No, the buttons I want to remove are not accessible from the
>>> configuration element of the HTMLWidget.
>>> I want to remove buttons like "italic", "underline", "bold". There seems
>>> to be a button set, from which you can only add buttons but not remove.
>>> I hope, that in 7.5.1 there is still a possibility to remove any button I
>>> like.
>>>
>>> Regards
>>> Kai
>>>
>>> -----Ursprüngliche Nachricht-----
>>> Von: opencms-dev-bounces at opencms.org
>>> [mailto:opencms-dev-bounces at opencms.org] Im Auftrag von Graeme Kidd
>>> Gesendet: Mittwoch, 20. Januar 2010 01:20
>>> An: 'The OpenCms mailing list'
>>> Betreff: Re: [opencms-dev] OpenCms 7.5.1: How to remove buttons fromthe
>>> FCKeditor in XMLContents
>>>
>>>> Hi list,
>>>> can anybody give me a hint on how to remove buttons from the FCKeditor
>>>> in
>>> XMLContents?
>>>> Up to version 7.5.0 it was possible to do it in configwidget.js. But
>>>> this
>>> seems no longer possible.
>>>> TIA
>>>> Regards
>>>> Kai
>>> Are the buttons you need to remove accessible from the configuration
>>> element
>>> of the HTMLWidget
>>> http://opencms-wiki.org/HtmlWidget
>>>
>>> Otherwise what button are you wanting to remove?
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> This mail is sent to you from the opencms-dev mailing list
>>> To change your list options, or to unsubscribe from the list, please
>>> visit
>>> http://lists.opencms.org/mailman/listinfo/opencms-dev
>>>
>>> _______________________________________________
>>> This mail is sent to you from the opencms-dev mailing list
>>> To change your list options, or to unsubscribe from the list, please
>>> visit
>>> http://lists.opencms.org/mailman/listinfo/opencms-dev
>> _______________________________________________
>> This mail is sent to you from the opencms-dev mailing list
>> To change your list options, or to unsubscribe from the list, please visit
>> http://lists.opencms.org/mailman/listinfo/opencms-dev
>>
>>
>
More information about the opencms-dev
mailing list