Bugfix. Mise en forme du code.
[ckeditor.git] / skins / ckeditor / config.js
1 /*
2 Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
3 For licensing, see LICENSE.html or http://ckeditor.com/license
4 */
5
6 CKEDITOR.editorConfig = function( config )
7 {
8 // Define changes to default configuration here. For example:
9 // config.language = 'fr';
10 // config.uiColor = '#AADC6E';
11
12 // toolbar
13 config.toolbar = [
14 { name: 'styles', items : [ 'Styles', 'Format', 'Font', 'FontSize' ] },
15 { name: 'colors', items : [ 'TextColor', 'BGColor' ] },
16 { name: 'document', items : [ 'Maximize', 'ShowBlocks', 'Source'] },
17 { name: 'editing', items : [ 'Find','Replace', '-', 'SelectAll'] },
18 { name: 'clipboard', items : [ 'PasteFromWord', '-', 'Undo', 'Redo' ] },
19 '/',
20 { name: 'basicstyles', items : [ 'Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'RemoveFormat' ] },
21 { name: 'paragraph', items : [ 'NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote', 'CreateDiv', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'] },
22 { name: 'links', items : [ 'Link', 'Unlink', 'Anchor' ] },
23 { name: 'insert', items : [ 'PlinnImage', 'Flash', 'Table', 'HorizontalRule', 'SpecialChar', 'PageBreak'] },
24 ];
25
26 // context menu
27 config.menu_groups = 'tablecell,tablecellproperties,tablerow,tablecolumn,table,anchor,link,image,flash'
28
29 config.height = '500px';
30 config.contentsCss = CKEDITOR.basePath + 'global_plinn_style_editor.css';
31
32 config.filebrowserBrowseUrl = CKEDITOR.basePath + 'filemanager/browser/mac_finder/browser.html?Connector=connectors/plinn/connector';
33 CKEDITOR.config.filebrowserImageBrowseUrl = CKEDITOR.basePath + 'filemanager/browser/mac_finder/browser.html?Type=Image&Connector=connectors/plinn/connector';
34 config.filebrowserWindowHeight = 600;
35 config.filebrowserWindowWidth = 801;
36 config.attachmentBrowserConnectorUrl = CKEDITOR.basePath + 'plugins/plinn_image/connectors/plinn/connector';
37 config.imageMaxDefaultDimension = 500 ; // image inserted will be cropped at this size.
38 config.extraPlugins = 'plinn_image,codemirror';
39 };