[opencms-dev] Add a button to TinyMCE
Georgi Naplatanov
gosho at oles.biz
Fri Sep 21 10:35:27 CEST 2012
Hi Nakayama.
You can add/remove buttons in xsd for particular XML content.
For adding buttons:
.........
<layouts>
<layout element="..." widget="HtmlWidget"
configuration=" source,imagegallery,table " />
.............
For removing buttons:
<layouts>
<layout element="..." widget="HtmlWidget"
configuration="hidebuttons:bold;italic;underline;strikethrough;indent;
outdent" />
You can see translation map between OpenCms' names and TinyMCE's in
org.opencms.editors.tinymce.CmsTinyMCEWidget#BUTTON_TRANSLATION
Best regards
Georgi
On 09/21/2012 10:12 AM, Nakayama Junichi wrote:
> Hi again
>
> I hope anyone to answer the below critical issue. I still cannot
> investigate the point of problem.
>
> To customize TinyMCE editor buttons, I'd like to find out any external
> files.
>
> Anyone help to me.
>
> Junichi
>
> ----- Original Message ----- From: "Nakayama Junichi" <nakayama at sra.co.jp>
> To: <opencms-dev at opencms.org>
> Sent: Wednesday, September 12, 2012 7:05 PM
> Subject: [opencms-dev] Add a button to TinyMCE
>
>
>> Dear all
>>
>> To add a button to the Tinymce editor, I went to CmsHtmlWidgetOption
>> the following modifications.
>>
>> public static final String[] OPTIONAL_BUTTONS = {
>> ..............
>> //OPTION_BACKCOLOR,
>> //OPTION_FONTSIZESELECT,
>> //OPTION_FORECOLOR,
>> .................
>>
>> Three buttons are added to the editor in this way fix the java occurs
>> in this way, build is required.
>> I want to teach you how to write if there is a way to capture the
>> information from an external file,
>> such as the Add button if opencms-vfs.xml .
>>
>> Kind Regards,
>>
>> _______________________________________________
>> 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/cgi-bin/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/cgi-bin/mailman/listinfo/opencms-dev
>
>
>
More information about the opencms-dev
mailing list