Forums / Setup & design / ezoe : How to call button config ?

ezoe : How to call button config ?

Author Message

H-Works Agency

Thursday 28 April 2011 9:07:10 am

Hello everyone,

We can see in ezoe.ini that we can configure customs buttons layout in the ezoe tinymce.

The problem is that its never mentionned how/where to call the configuration name ?

There an example called "mini" like this : But where do we call the "mini" key ?

[EditorLayout_mini]
Buttons[]
Buttons[]=bold
Buttons[]=italic
Buttons[]=underline
Buttons[]=|
Buttons[]=undo
Buttons[]=redo
PathLocation=none
Thanx

EZP is Great

H-Works Agency

Thursday 28 April 2011 9:42:11 am

Good, after searching the ezpublish documentation (which mean searching source code :) i found this undocumented feature :

To use a custom buttons configuration you have to :

1/ Create ezxml.ini.append.php in your siteaccess holding the config's name :

[TagSettings]
TagPresets[config_identifier]=Config Name

2/ Create a ezoe.ini.append.php holding your config buttons (check forum topic)

3/ Go to admin siteaccess and edit the class where the ezxml attribute's toolbar should be custom. You should then see the config name detailed in 1/

4/ Add a new object of this class and your custom toolbar should be displayed.

EZP is Great

zhong tian

Tuesday 17 May 2011 1:42:52 am

Good job! Agency

I'm doing find this. Great!