diff options
author | Ivan Kohler <ivan@freeside.biz> | 2015-07-26 15:41:26 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2015-07-26 15:41:26 -0700 |
commit | 9aee669886202be7035e6c6049fc71bc99dd3013 (patch) | |
tree | 2fd5bf6de74f3d99270587ffb1833e4188a6373d /rt/share/static/RichText/config.js | |
parent | ac20214d38d9af00430423f147b5a0e50751b050 (diff) | |
parent | 1add633372bdca3cc7163c2ce48363fed3984437 (diff) |
Merge branch 'master' of git.freeside.biz:/home/git/freeside
Diffstat (limited to 'rt/share/static/RichText/config.js')
-rw-r--r-- | rt/share/static/RichText/config.js | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/rt/share/static/RichText/config.js b/rt/share/static/RichText/config.js new file mode 100644 index 000000000..8317bfc8f --- /dev/null +++ b/rt/share/static/RichText/config.js @@ -0,0 +1,47 @@ +/** + * @license Copyright (c) 2003-2013, 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'; + +config.toolbar_Full = +[ + ['Cut','Copy','Paste','PasteText','PasteFromWord'], + ['Undo','Redo','-','-','SelectAll','RemoveFormat'], + ['Table','HorizontalRule','SpecialChar'], + '/', + ['Bold','Italic','Underline','Strike'], + ['NumberedList','BulletedList','-','Outdent','Indent'], + ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'], + '/', + ['Format','Font','FontSize'], + ['TextColor'], + ['Link'] +]; + +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'; +}; |