Ticket #8385: 8385-config.js

File 8385-config.js, 2.1 KB (added by z.kwiecinski, 12 years ago)

custom configuration

Line 
1/*
2Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.html or http://ckeditor.com/license
4*/
5
6CKEDITOR.editorConfig = function( config ) {
7        config.skin='office2003';
8        config.disableNativeSpellChecker=false;   
9        config.scayt_autoStartup = false;
10       
11        config.enterMode = CKEDITOR.ENTER_BR;
12        config.shiftEnterMode = CKEDITOR.ENTER_P;
13       
14        config.toolbarCanCollapse = false;
15        config.toolbar =
16                [
17                        { name: 'styles',               items : [ 'Font','FontSize'] },
18                        { name: 'basicstyles',  items : [ 'Bold','Italic','Underline','Strike','Subscript','Superscript','-','RemoveFormat' ] },
19                        { name: 'justify',      items : [ 'JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'] },
20//                      { name: 'tools',                items : [ 'backgrounder', 'Preview', 'Maximize', '-','ShowBlocks' ] },
21                        { name: 'other',                items : [ 'Preview','Maximize','-','ShowBlocks' ] },
22                        { name: 'paragraph',    items : [ 'NumberedList','BulletedList','HorizontalRule','Outdent','Indent' ] },
23                        '/',
24                        { name: 'clipboard',    items : [ 'Cut','Copy','Paste','PasteText','PasteFromWord','-','Undo','Redo', '-', 'Find' ] },
25                        { name: 'colors',               items : [ 'TextColor','BGColor' ] },
26                        { name: 'links',                items : [ 'Table', 'Link','Unlink','Anchor', '-', 'Source' ] },
27                        { name: 'insert',               items : [ 'Image','Flash', 'Templates' ] },
28                        { name: 'editing',              items : [ 'Replace','-','SelectAll'] }
29                ];
30
31        config.keystrokes = config.keystrokes.concat ( [
32                [ CKEDITOR.CTRL+CKEDITOR.SHIFT+83 /*S*/, 'save' ],
33                [ CKEDITOR.CTRL+CKEDITOR.ALT+13 /*ENTER*/, 'maximize' ],
34//              [ CKEDITOR.CTRL+9 /*TAB*/, 'backgrounder' ]
35                [ CKEDITOR.CTRL+9 /*TAB*/, 'source' ]
36          ]);
37//      config.extraPlugins = 'backgrounder';
38        config.filebrowserImageBrowseUrl='repo/selectFile.do?fileType=image';
39        config.filebrowserImageWindowWidth =700;
40        config.filebrowserImageWindowHeight=500;
41
42        config.filebrowserFlashBrowseUrl='repo/selectFile.do?fileType=flash';
43        config.filebrowserFlashWindowWidth=700;
44        config.filebrowserFlashWindowHeight=500;
45       
46        config.entities_additional='';
47};
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy