1 | /*
|
---|
2 | * FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
---|
3 | * Copyright (C) 2003-2009 Frederico Caldeira Knabben
|
---|
4 | *
|
---|
5 | * == BEGIN LICENSE ==
|
---|
6 | *
|
---|
7 | * Licensed under the terms of any of the following licenses at your
|
---|
8 | * choice:
|
---|
9 | *
|
---|
10 | * - GNU General Public License Version 2 or later (the "GPL")
|
---|
11 | * http://www.gnu.org/licenses/gpl.html
|
---|
12 | *
|
---|
13 | * - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
---|
14 | * http://www.gnu.org/licenses/lgpl.html
|
---|
15 | *
|
---|
16 | * - Mozilla Public License Version 1.1 or later (the "MPL")
|
---|
17 | * http://www.mozilla.org/MPL/MPL-1.1.html
|
---|
18 | *
|
---|
19 | * == END LICENSE ==
|
---|
20 | *
|
---|
21 | * Sample custom configuration settings used in the plugin sample page (sample06).
|
---|
22 | */
|
---|
23 |
|
---|
24 | // Set our sample toolbar.
|
---|
25 | FCKConfig.ToolbarSets['PluginTest'] = [
|
---|
26 | ['SourceSimple'],
|
---|
27 | ['My_Find','My_Replace','-','Placeholder'],
|
---|
28 | ['StyleSimple','FontFormatSimple','FontNameSimple','FontSizeSimple'],
|
---|
29 | ['Table','-','TableInsertRowAfter','TableDeleteRows','TableInsertColumnAfter','TableDeleteColumns','TableInsertCellAfter','TableDeleteCells','TableMergeCells','TableHorizontalSplitCell','TableCellProp'],
|
---|
30 | ['Bold','Italic','-','OrderedList','UnorderedList','-','Link','Unlink'],
|
---|
31 | '/',
|
---|
32 | ['My_BigStyle','-','Smiley','-','About']
|
---|
33 | ] ;
|
---|
34 |
|
---|
35 | // Change the default plugin path.
|
---|
36 | FCKConfig.PluginsPath = FCKConfig.BasePath.substr(0, FCKConfig.BasePath.length - 7) + '_samples/_plugins/' ;
|
---|
37 |
|
---|
38 | // Add our plugin to the plugins list.
|
---|
39 | // FCKConfig.Plugins.Add( pluginName, availableLanguages )
|
---|
40 | // pluginName: The plugin name. The plugin directory must match this name.
|
---|
41 | // availableLanguages: a list of available language files for the plugin (separated by a comma).
|
---|
42 | FCKConfig.Plugins.Add( 'findreplace', 'en,fr,it' ) ;
|
---|
43 | FCKConfig.Plugins.Add( 'samples' ) ;
|
---|
44 |
|
---|
45 | // If you want to use plugins found on other directories, just use the third parameter.
|
---|
46 | var sOtherPluginPath = FCKConfig.BasePath.substr(0, FCKConfig.BasePath.length - 7) + 'editor/plugins/' ;
|
---|
47 | FCKConfig.Plugins.Add( 'placeholder', 'de,en,es,fr,it,pl', sOtherPluginPath ) ;
|
---|
48 | FCKConfig.Plugins.Add( 'tablecommands', null, sOtherPluginPath ) ;
|
---|
49 | FCKConfig.Plugins.Add( 'simplecommands', null, sOtherPluginPath ) ;
|
---|