about summary refs log tree commit diff stats
path: root/app/assets/javascripts/ckeditor/config.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/ckeditor/config.js')
-rw-r--r--app/assets/javascripts/ckeditor/config.js61
1 files changed, 61 insertions, 0 deletions
diff --git a/app/assets/javascripts/ckeditor/config.js b/app/assets/javascripts/ckeditor/config.js new file mode 100644 index 0000000..44b3c23 --- /dev/null +++ b/app/assets/javascripts/ckeditor/config.js
@@ -0,0 +1,61 @@
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{
8 // Define changes to default configuration here. For example:
9 // config.language = 'fr';
10 // config.uiColor = '#AADC6E';
11 config.height = "512px";
12
13 config.extraPlugins = "lineutils,widgetselection,widget,image2";
14
15 /* Filebrowser routes */
16 // The location of an external file browser, that should be launched when "Browse Server" button is pressed.
17 config.filebrowserBrowseUrl = "/ckeditor/attachment_files";
18
19 // The location of an external file browser, that should be launched when "Browse Server" button is pressed in the Flash dialog.
20 config.filebrowserFlashBrowseUrl = "/ckeditor/attachment_files";
21
22 // The location of a script that handles file uploads in the Flash dialog.
23 config.filebrowserFlashUploadUrl = "/ckeditor/attachment_files";
24
25 // The location of an external file browser, that should be launched when "Browse Server" button is pressed in the Link tab of Image dialog.
26 config.filebrowserImageBrowseLinkUrl = "/ckeditor/pictures";
27
28 // The location of an external file browser, that should be launched when "Browse Server" button is pressed in the Image dialog.
29 config.filebrowserImageBrowseUrl = "/ckeditor/pictures";
30
31 // The location of a script that handles file uploads in the Image dialog.
32 config.filebrowserImageUploadUrl = "/ckeditor/pictures?";
33
34 // The location of a script that handles file uploads.
35 config.filebrowserUploadUrl = "/ckeditor/attachment_files";
36
37 config.allowedContent = true;
38
39 // Toolbar groups configuration.
40 config.toolbar = [
41 { name: 'document', groups: [ 'mode', 'document', 'doctools' ], items: [ 'Source', 'Maximize' ] },
42 { name: 'clipboard', groups: [ 'clipboard', 'undo' ], items: [ 'Cut', 'Copy', 'Paste', 'PasteText', '-', 'Undo', 'Redo' ] },
43 { name: 'editing', groups: [ 'find' ], items: [ 'Find', 'Replace' ] },
44 // { name: 'forms', items: [ 'Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 'HiddenField' ] },
45 { name: 'links', items: [ 'Link', 'Unlink', 'Anchor' ] },
46 { name: 'insert', items: [ 'Image', 'Table', 'HorizontalRule' ] },
47 { name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi' ], items: [ 'NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote', 'CreateDiv', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock' ] },
48 '/',
49 { name: 'styles', items: [ 'Styles', 'Format', 'Font', 'FontSize' ] },
50 { name: 'colors', items: [ 'TextColor', 'BGColor' ] },
51 { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ], items: [ 'Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'RemoveFormat' ] }
52 ];
53
54 config.toolbar_mini = [
55 { name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi' ], items: [ 'NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote', 'CreateDiv', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock' ] },
56 { name: 'styles', items: [ 'Font', 'FontSize' ] },
57 { name: 'colors', items: [ 'TextColor', 'BGColor' ] },
58 { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ], items: [ 'Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'RemoveFormat' ] },
59 { name: 'insert', items: [ 'Image', 'Table', 'HorizontalRule', 'SpecialChar' ] }
60 ];
61};