sample06.config.js 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. // Set our sample toolbar.
  24. FCKConfig.ToolbarSets['PluginTest'] = [
  25. ['SourceSimple'],
  26. ['My_Find','My_Replace','-','Placeholder'],
  27. ['StyleSimple','FontFormatSimple','FontNameSimple','FontSizeSimple'],
  28. ['Table','-','TableInsertRowAfter','TableDeleteRows','TableInsertColumnAfter','TableDeleteColumns','TableInsertCellAfter','TableDeleteCells','TableMergeCells','TableHorizontalSplitCell','TableCellProp'],
  29. ['Bold','Italic','-','OrderedList','UnorderedList','-','Link','Unlink'],
  30. '/',
  31. ['My_BigStyle','-','Smiley','-','About']
  32. ] ;
  33. // Change the default plugin path.
  34. FCKConfig.PluginsPath = FCKConfig.BasePath.substr(0, FCKConfig.BasePath.length - 7) + '_samples/_plugins/' ;
  35. // Add our plugin to the plugins list.
  36. // FCKConfig.Plugins.Add( pluginName, availableLanguages )
  37. // pluginName: The plugin name. The plugin directory must match this name.
  38. // availableLanguages: a list of available language files for the plugin (separated by a comma).
  39. FCKConfig.Plugins.Add( 'findreplace', 'en,fr,it' ) ;
  40. FCKConfig.Plugins.Add( 'samples' ) ;
  41. // If you want to use plugins found on other directories, just use the third parameter.
  42. var sOtherPluginPath = FCKConfig.BasePath.substr(0, FCKConfig.BasePath.length - 7) + 'editor/plugins/' ;
  43. FCKConfig.Plugins.Add( 'placeholder', 'de,en,es,fr,it,pl', sOtherPluginPath ) ;
  44. FCKConfig.Plugins.Add( 'tablecommands', null, sOtherPluginPath ) ;
  45. FCKConfig.Plugins.Add( 'simplecommands', null, sOtherPluginPath ) ;