Fórum

custom styles set for toolbar

R V, modificado 11 Anos atrás.

custom styles set for toolbar

New Member Postagens: 18 Data de Entrada: 11/01/12 Postagens Recentes
How do I add custom styles to my custom toolbar.

All the toolbars have 'Styles' which maps to liferayStyles

so if I define my custom toolbarset, let's say, toolbarset_custom

How can I define my own style to go with it.

CKEDITOR.config.stylesCombo_stylesSet = 'liferayStyles_custom';

I defined the above, bu the CKEDITOR.config.stylesCombo_stylesSet maps to Styles so all the toolbar sets get this change.
I want only the toolbarset_custom to have this styleset
R V, modificado 11 Anos atrás.

RE: custom styles set for toolbar

New Member Postagens: 18 Data de Entrada: 11/01/12 Postagens Recentes
CKEDITOR.config.toolbar_custom = [
['CustomStyles', 'FontSize', '-', 'TextColor', 'BGColor'],
['Bold', 'Italic', 'Underline', 'StrikeThrough'],
['Subscript', 'Superscript'],
'/',
['Undo', 'Redo', '-', 'Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'SelectAll', 'RemoveFormat'],
['Find', 'Replace', 'SpellCheck'],
['NumberedList','BulletedList','-','Outdent','Indent','Blockquote­'],
['JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'],
'/',
['Source'],
['Link', 'Unlink', 'Anchor'],
['Image', 'Flash', 'Table', '-', 'Smiley', 'SpecialChar', 'LiferayPageBreak']
];

In other words how do I define the custom syles as highlighted. It is not clear from the documentation.