[ Index ]
 

Code source de FCKeditor 2.4

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/_samples/html/ -> sample06.config.js (source)

   1  /*
   2   * FCKeditor - The text editor for Internet - http://www.fckeditor.net
   3   * Copyright (C) 2003-2007 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   * File Name: sample06.config.js
  22   *     Sample custom configuration settings used in the plugin sample page (sample06).
  23   * 
  24   * File Authors:
  25   *         Frederico Caldeira Knabben (www.fckeditor.net)
  26   */
  27  
  28  // Set our sample toolbar.
  29  FCKConfig.ToolbarSets['PluginTest'] = [
  30      ['SourceSimple'],
  31      ['My_Find','My_Replace','-','Placeholder'],
  32      ['StyleSimple','FontFormatSimple','FontNameSimple','FontSizeSimple'],
  33      ['Table','-','TableInsertRow','TableDeleteRows','TableInsertColumn','TableDeleteColumns','TableInsertCell','TableDeleteCells','TableMergeCells','TableSplitCell'],
  34      ['Bold','Italic','-','OrderedList','UnorderedList','-','Link','Unlink'],
  35      '/',
  36      ['My_BigStyle','-','Smiley','-','About']
  37  ] ;
  38  
  39  // Change the default plugin path.
  40  FCKConfig.PluginsPath = FCKConfig.BasePath.substr(0, FCKConfig.BasePath.length - 7) + '_samples/_plugins/' ;
  41  
  42  // Add our plugin to the plugins list.
  43  //        FCKConfig.Plugins.Add( pluginName, availableLanguages )
  44  //            pluginName: The plugin name. The plugin directory must match this name.
  45  //            availableLanguages: a list of available language files for the plugin (separated by a comma).
  46  FCKConfig.Plugins.Add( 'findreplace', 'en,it,fr' ) ;
  47  FCKConfig.Plugins.Add( 'samples' ) ;
  48  
  49  // If you want to use plugins found on other directories, just use the third parameter.
  50  var sOtherPluginPath = FCKConfig.BasePath.substr(0, FCKConfig.BasePath.length - 7) + 'editor/plugins/' ;
  51  FCKConfig.Plugins.Add( 'placeholder', 'en,it,de,fr', sOtherPluginPath ) ;
  52  FCKConfig.Plugins.Add( 'tablecommands', null, sOtherPluginPath ) ;
  53  FCKConfig.Plugins.Add( 'simplecommands', null, sOtherPluginPath ) ;


Généré le : Sun Feb 25 15:28:05 2007 par Balluche grâce à PHPXref 0.7