mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-07 09:25:09 +00:00
Imported CKEDITOR 3.0
Monotone-Parent: 5f9c08dd6b5b34d815ddb2108abbf4055e846934 Monotone-Revision: b2cf7eda0ef8f15fb6e78f8c38a7406a47bcdd2f Monotone-Author: crobert@inverse.ca Monotone-Date: 2009-08-26T14:03:12 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -127,8 +127,17 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
|
||||
for ( var r = 0 ; r < toolbar.length ; r++ )
|
||||
{
|
||||
var row = toolbar[ r ],
|
||||
toolbarId = 'cke_' + CKEDITOR.tools.getNextNumber(),
|
||||
var row = toolbar[ r ];
|
||||
|
||||
// It's better to check if the row object is really
|
||||
// available because it's a common mistake to leave
|
||||
// an extra comma in the toolbar definition
|
||||
// settings, which leads on the editor not loading
|
||||
// at all in IE. (#3983)
|
||||
if ( !row )
|
||||
continue;
|
||||
|
||||
var toolbarId = 'cke_' + CKEDITOR.tools.getNextNumber(),
|
||||
toolbarObj = { id : toolbarId, items : [] };
|
||||
|
||||
if ( groupStarted )
|
||||
@@ -302,20 +311,51 @@ CKEDITOR.config.toolbarLocation = 'top';
|
||||
/**
|
||||
* The toolbar definition. It is an array of toolbars (strips),
|
||||
* each one being also an array, containing a list of UI items.
|
||||
* Note that this setting is composed by "toolbar_" added by the toolbar name,
|
||||
* which in this case is called "Basic". This second part of the setting name
|
||||
* can be anything. You must use this name in the
|
||||
* {@link CKEDITOR.config.toolbar} setting, so you instruct the editor which
|
||||
* toolbar_(name) setting to you.
|
||||
* @type Array
|
||||
* @example
|
||||
* // Defines a toolbar with only one strip containing the "Source" button, a
|
||||
* // separator and the "Bold" and "Italic" buttons.
|
||||
* <b>CKEDITOR.config.toolbar_Basic =
|
||||
* <b>config.toolbar_Basic =
|
||||
* [
|
||||
* [ 'Source', '-', 'Bold', 'Italic' ]
|
||||
* ]</b>;
|
||||
* config.toolbar = 'Basic';
|
||||
*/
|
||||
CKEDITOR.config.toolbar_Basic =
|
||||
[
|
||||
['Bold', 'Italic', '-', 'NumberedList', 'BulletedList', '-', 'Link', 'Unlink','-','About']
|
||||
];
|
||||
|
||||
/**
|
||||
* This is the default toolbar definition used by the editor. It contains all
|
||||
* editor features.
|
||||
* @type Array
|
||||
* @default (see example)
|
||||
* @example
|
||||
* // This is actually the default value.
|
||||
* config.toolbar_Full =
|
||||
* [
|
||||
* ['Source','-','Save','NewPage','Preview','-','Templates'],
|
||||
* ['Cut','Copy','Paste','PasteText','PasteFromWord','-','Print', 'SpellChecker', 'Scayt'],
|
||||
* ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
|
||||
* ['Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 'HiddenField'],
|
||||
* '/',
|
||||
* ['Bold','Italic','Underline','Strike','-','Subscript','Superscript'],
|
||||
* ['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'],
|
||||
* ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
|
||||
* ['Link','Unlink','Anchor'],
|
||||
* ['Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak'],
|
||||
* '/',
|
||||
* ['Styles','Format','Font','FontSize'],
|
||||
* ['TextColor','BGColor'],
|
||||
* ['Maximize', 'ShowBlocks','-','About']
|
||||
* ];
|
||||
*/
|
||||
CKEDITOR.config.toolbar_Full =
|
||||
[
|
||||
['Source','-','Save','NewPage','Preview','-','Templates'],
|
||||
@@ -326,7 +366,8 @@ CKEDITOR.config.toolbar_Full =
|
||||
['Bold','Italic','Underline','Strike','-','Subscript','Superscript'],
|
||||
['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'],
|
||||
['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
|
||||
['Link','Unlink','Anchor'], ['Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak'],
|
||||
['Link','Unlink','Anchor'],
|
||||
['Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak'],
|
||||
'/',
|
||||
['Styles','Format','Font','FontSize'],
|
||||
['TextColor','BGColor'],
|
||||
@@ -334,20 +375,38 @@ CKEDITOR.config.toolbar_Full =
|
||||
];
|
||||
|
||||
/**
|
||||
* The toolbox (alias toolbar) definition. It is a toolbar name or an array of toolbars (strips),
|
||||
* each one being also an array, containing a list of UI items.
|
||||
* @type Array or String
|
||||
* The toolbox (alias toolbar) definition. It is a toolbar name or an array of
|
||||
* toolbars (strips), each one being also an array, containing a list of UI items.
|
||||
* @type Array|String
|
||||
* @default 'Full'
|
||||
* @example
|
||||
* // Defines a toolbar with only one strip containing the "Source" button, a
|
||||
* // separator and the "Bold" and "Italic" buttons.
|
||||
* <b>CKEDITOR.config.toolbar =
|
||||
* config.toolbar =
|
||||
* [
|
||||
* [ 'Source', '-', 'Bold', 'Italic' ]
|
||||
* ]</b>;
|
||||
* ];
|
||||
* @example
|
||||
* // Load toolbar_Name where Name = Basic.
|
||||
* <b>CKEDITOR.config.toolbar = 'Basic';
|
||||
* config.toolbar = 'Basic';
|
||||
*/
|
||||
CKEDITOR.config.toolbar = 'Full';
|
||||
|
||||
/**
|
||||
* Whether the toolbar can be collapsed by the user. If disabled, the collapser
|
||||
* button will not be displayed.
|
||||
* @type Boolean
|
||||
* @default true
|
||||
* @example
|
||||
* config.toolbarCanCollapse = false;
|
||||
*/
|
||||
CKEDITOR.config.toolbarCanCollapse = true;
|
||||
|
||||
/**
|
||||
* Whether the toolbar must start expanded when the editor is loaded.
|
||||
* @type Boolean
|
||||
* @default true
|
||||
* @example
|
||||
* config.toolbarStartupExpanded = false;
|
||||
*/
|
||||
CKEDITOR.config.toolbarStartupExpanded = true;
|
||||
|
||||
Reference in New Issue
Block a user