Buttons"

This website contains links to software which is either no longer maintained or will be supported only until the end of 2019 (CKFinder 2). For the latest documentation about current CKSource projects, including software like CKEditor 4/CKEditor 5, CKFinder 3, Cloud Services, Letters, Accessibility Checker, please visit the new documentation website.

If you look for an information about very old versions of CKEditor, FCKeditor and CKFinder check also the CKEditor forum, which was closed in 2015. If not, please head to StackOverflow for support.

 
Line 1: Line 1:
{{pagetitle:Establishing the button in the toolbar}}
+
== Establishing the button in the toolbar ==
 +
 
 +
You should create a new toolbar in your custom [[FCKeditor 2.x/Developers Guide/Configuration/Configuration File|Configuration File]] to reference the plugin:
 +
<pre>//custom config.js - My custom Configuration File
 +
FCKConfig.ToolbarSets['PluginTest'] = [
 +
['SourceSimple'],
 +
['My_Find','My_Replace','-','Placeholder'],
 +
['StyleSimple','FontFormatSimple','FontNameSimple','FontSizeSimple'],
 +
['Table','-','TableInsertRowAfter','TableDeleteRows','TableInsertColumnAfter','TableDeleteColumns','TableInsertCellAfter','TableDeleteCells','TableMergeCells','TableHorizontalSplitCell','TableCellProp'],
 +
['Bold','Italic','-','OrderedList','UnorderedList','-','Link','Unlink'],
 +
'/',
 +
['My_BigStyle','-','Smiley','-','About']
 +
]&nbsp;;
 +
</pre>
 +
In the given example, 'Placeholder', 'My_Find', 'My_replace' and the table commands are implemented by plugins.

Latest revision as of 15:09, 17 January 2008

Establishing the button in the toolbar

You should create a new toolbar in your custom Configuration File to reference the plugin:

//custom config.js - My custom Configuration File
FCKConfig.ToolbarSets['PluginTest'] = [
['SourceSimple'],
['My_Find','My_Replace','-','Placeholder'],
['StyleSimple','FontFormatSimple','FontNameSimple','FontSizeSimple'],
['Table','-','TableInsertRowAfter','TableDeleteRows','TableInsertColumnAfter','TableDeleteColumns','TableInsertCellAfter','TableDeleteCells','TableMergeCells','TableHorizontalSplitCell','TableCellProp'],
['Bold','Italic','-','OrderedList','UnorderedList','-','Link','Unlink'],
'/',
['My_BigStyle','-','Smiley','-','About']
] ;

In the given example, 'Placeholder', 'My_Find', 'My_replace' and the table commands are implemented by plugins.

This page was last edited on 17 January 2008, at 15:09.