diff options
| author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-07-02 13:03:43 -0400 |
|---|---|---|
| committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-07-02 13:03:43 -0400 |
| commit | e47e83cf6bded3d1924b4d500193e7876833ef83 (patch) | |
| tree | 058f011637e67455dcd8451fbfa784b5883c6f69 /app/assets/javascripts/ckeditor/config.js | |
| parent | 528ccde8915cd1ed7a39e137dd4d98869797956a (diff) | |
| download | thoughts-e47e83cf6bded3d1924b4d500193e7876833ef83.tar.gz thoughts-e47e83cf6bded3d1924b4d500193e7876833ef83.tar.bz2 thoughts-e47e83cf6bded3d1924b4d500193e7876833ef83.zip | |
Created admin panel
Currently allows you to create and edit blogs, including associated records. Uses a WYSIWYG editor that allows uploading images. Also included jQuery :(
Diffstat (limited to 'app/assets/javascripts/ckeditor/config.js')
| -rw-r--r-- | app/assets/javascripts/ckeditor/config.js | 61 |
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 | /* | ||
| 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 | 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 | }; | ||
