-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
Update our custom config file to add a few more toolbar buttons, including 'source', which may be contentious. This update also switches our theme and removes some plugins, such as the "current DOM element" bar The upgrade process looks like this: [Update the copy of ckeditor in third-party. To do so, look at build-config.js] $ cd share/web/static/RichText $ rm -rf * $ cp -a ../../../devel/third-party/ckeditor/* . $ rm -rf README.md LICENSE.md samples/ build-config.js CHANGES.md $ echo "\n\n// RT override:\nbody { background-color: transparent;}\n\n" >> contents.css $ git co config.js [ Update config.js to add new plugins or massage toolbar ] $ git add . $ git commit
- Loading branch information
There are no files selected for viewing
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,45 @@ | ||
/** | ||
* @license Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.html or http://ckeditor.com/license | ||
*/ | ||
/** @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. | ||
* All rights reserved. | ||
* For licensing, see LICENSE.html or http://ckeditor.com/license */ | ||
|
||
CKEDITOR.editorConfig = function( config ) { | ||
// Define changes to default configuration here. For example: | ||
// config.language = 'fr'; | ||
// config.uiColor = '#AADC6E'; | ||
config.toolbar = 'Full'; | ||
// %REMOVE_START% | ||
// The configuration options below are needed when running CKEditor from source files. | ||
config.plugins = 'dialogui,dialog,a11yhelp,dialogadvtab,basicstyles,blockquote,clipboard,button,panelbutton,panel,floatpanel,colorbutton,menu,contextmenu,resize,toolbar,enterkey,entities,find,floatingspace,listblock,richcombo,font,format,htmlwriter,wysiwygarea,indent,justify,fakeobjects,link,indentlist,list,liststyle,magicline,pastetext,pastefromword,removeformat,selectall,sourcearea,specialchar,menubutton,tab,table,tabletools,undo,popup,autolink,horizontalrule'; | ||
config.skin = 'flat'; | ||
// %REMOVE_END% | ||
|
||
config.toolbar_Full = | ||
[ | ||
|
||
config.toolbar = 'Full'; | ||
config.toolbar_Full = [ | ||
['Cut','Copy','Paste','PasteText','PasteFromWord'], | ||
['Undo','Redo','-','-','SelectAll','RemoveFormat'], | ||
['Table','HorizontalRule','SpecialChar'], | ||
['Table','HorizontalRule','SpecialChar','Link'], | ||
'/', | ||
['Bold','Italic','Underline','Strike'], | ||
['NumberedList','BulletedList','-','Outdent','Indent'], | ||
['NumberedList','BulletedList','-','Outdent','Indent','-','Blockquote'], | ||
['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'], | ||
'/', | ||
['Format','Font','FontSize'], | ||
['TextColor'], | ||
['Link'] | ||
['Source'] | ||
]; | ||
|
||
config.enterMode = CKEDITOR.ENTER_BR; | ||
config.shiftEnterMode = CKEDITOR.ENTER_P; | ||
config.enableTabKeyTools = true; | ||
config.htmlEncodeOutput = false; | ||
|
||
config.disableNativeSpellChecker = false; | ||
config.browserContextMenuOnCtrl = true; | ||
|
||
|
||
config.toolbarCanCollapse = true; | ||
config.toolbarStartupExpanded = false; | ||
config.font_names = | ||
'Arial/Arial, Helvetica, sans-serif;' + | ||
'Courier New/Courier New, Courier, monospace;' + | ||
'Georgia/Georgia, serif;' + | ||
'Lucida Sans Unicode/Lucida Sans Unicode, Lucida Grande, sans-serif;' + | ||
'Tahoma/Tahoma, Geneva, sans-serif;' + | ||
'Times New Roman/Times New Roman, Times, serif;' + | ||
'Trebuchet MS/Trebuchet MS, Helvetica, sans-serif;' + | ||
'Verdana/Verdana, Geneva, sans-serif'; | ||
'Arial/Arial, Helvetica, sans-serif;' + | ||
'Courier New/Courier New, Courier, monospace;' + | ||
'Georgia/Georgia, serif;' + | ||
'Lucida Sans Unicode/Lucida Sans Unicode, Lucida Grande, sans-serif;' + | ||
'Tahoma/Tahoma, Geneva, sans-serif;' + | ||
'Times New Roman/Times New Roman, Times, serif;' + | ||
'Trebuchet MS/Trebuchet MS, Helvetica, sans-serif;' + | ||
'Verdana/Verdana, Geneva, sans-serif'; | ||
}; |
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.