summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbuild-config.js118
-rw-r--r--ckconfig.bitweaver.js38
-rw-r--r--ckconfig.custom.js43
3 files changed, 35 insertions, 164 deletions
diff --git a/build-config.js b/build-config.js
deleted file mode 100755
index 9c6d54b..0000000
--- a/build-config.js
+++ /dev/null
@@ -1,118 +0,0 @@
-/**
- * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md or https://ckeditor.com/license
- */
-
-/**
- * This file was added automatically by CKEditor builder.
- * You may re-use it at any time to build CKEditor again.
- *
- * If you would like to build CKEditor online again
- * (for example to upgrade), visit one the following links:
- *
- * (1) https://ckeditor.com/cke4/builder
- * Visit online builder to build CKEditor from scratch.
- *
- * (2) https://ckeditor.com/cke4/builder/53386cf359321d3583c8e5ac14ad7640
- * Visit online builder to build CKEditor, starting with the same setup as before.
- *
- * (3) https://ckeditor.com/cke4/builder/download/53386cf359321d3583c8e5ac14ad7640
- * Straight download link to the latest version of CKEditor (Optimized) with the same setup as before.
- *
- * NOTE:
- * This file is not used by CKEditor, you may remove it.
- * Changing this file will not change your CKEditor configuration.
- */
-
-var CKBUILDER_CONFIG = {
- skin: 'moonocolor',
- preset: 'full',
- ignore: [
- '.DS_Store',
- '.bender',
- '.editorconfig',
- '.gitattributes',
- '.gitignore',
- '.idea',
- '.jscsrc',
- '.jshintignore',
- '.jshintrc',
- '.mailmap',
- '.npm',
- '.travis.yml',
- 'bender-err.log',
- 'bender-out.log',
- 'bender.ci.js',
- 'bender.js',
- 'dev',
- 'gruntfile.js',
- 'less',
- 'node_modules',
- 'package.json',
- 'tests'
- ],
- plugins: {
- 'OpenStreet': 1,
- 'a11yhelp': 1,
- 'about': 1,
- 'basicstyles': 1,
- 'blockquote': 1,
- 'bootstrapTabs': 1,
- 'bt_table': 1,
- 'clipboard': 1,
- 'colorbutton': 1,
- 'colordialog': 1,
- 'contextmenu': 1,
- 'copyformatting': 1,
- 'dialogadvtab': 1,
- 'div': 1,
- 'elementspath': 1,
- 'enterkey': 1,
- 'entities': 1,
- 'filebrowser': 1,
- 'find': 1,
- 'floatingspace': 1,
- 'font': 1,
- 'format': 1,
- 'forms': 1,
- 'horizontalrule': 1,
- 'html5validation': 1,
- 'html5video': 1,
- 'htmlwriter': 1,
- 'iframe': 1,
- 'image': 1,
- 'indentblock': 1,
- 'indentlist': 1,
- 'justify': 1,
- 'link': 1,
- 'list': 1,
- 'liststyle': 1,
- 'magicline': 1,
- 'maximize': 1,
- 'newpage': 1,
- 'pastetext': 1,
- 'preview': 1,
- 'print': 1,
- 'removeformat': 1,
- 'resize': 1,
- 'save': 1,
- 'selectall': 1,
- 'showblocks': 1,
- 'showborders': 1,
- 'sourcearea': 1,
- 'specialchar': 1,
- 'stylescombo': 1,
- 'tab': 1,
- 'table': 1,
- 'tableselection': 1,
- 'tabletools': 1,
- 'templates': 1,
- 'toolbar': 1,
- 'undo': 1,
- 'wysiwygarea': 1
- },
- languages: {
- 'en': 1,
- 'en-gb': 1
- }
-}; \ No newline at end of file
diff --git a/ckconfig.bitweaver.js b/ckconfig.bitweaver.js
index 6b8b2d6..5783c7e 100644
--- a/ckconfig.bitweaver.js
+++ b/ckconfig.bitweaver.js
@@ -5,14 +5,14 @@ CKEDITOR.editorConfig = function( config ) {
/* Start of BITWEAVER toolbar sets */
config.toolbar_Supported = [
['Source','-','Preview'],
- ['Cut','Copy','Paste','PasteText','PasteFromWord','-','Print','SpellChecker'],
+ ['Cut','Copy','Paste','PasteText','PasteFromLibreOffice','-','Print'],
['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
'/',
['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
['NumberedList','BulletedList','-','Outdent','Indent'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
['Link','Unlink','Anchor'],
- ['Table','HorizontalRule','Smiley','SpecialChar','PageBreak'],
+ ['Table','HorizontalRule','SpecialChar'],
'/',
['Styles','Format','Font','FontSize'],
['TextColor','BGColor'],
@@ -23,54 +23,46 @@ config.toolbar_Beginner = [
['Bold','Italic','Underline'],
['NumberedList','BulletedList'],
['Link','Unlink','Anchor'],
- ['Table','HorizontalRule','Smiley','SpecialChar','PageBreak'],
+ ['Table','HorizontalRule','SpecialChar'],
['Maximize','-','About']
];
config.toolbar_Intermediate = [
- ['Cut','Copy','Paste','PasteText','PasteFromWord'],
+ ['Cut','Copy','Paste','PasteText','PasteFromLibreOffice'],
['Undo','Redo','-','Find','Replace','-','SelectAll'],
'/',
['Bold','Italic','Underline'],
['NumberedList','BulletedList','-','Outdent','Indent'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
['Link','Unlink','Anchor'],
- ['Table','HorizontalRule','Smiley','SpecialChar','PageBreak'],
+ ['Table','HorizontalRule','SpecialChar'],
'/',
['TextColor','BGColor'],
['Maximize','-','About']
];
config.toolbar_Advanced = [
- ['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
- ['NumberedList','BulletedList','-','Outdent','Indent'],
- ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
- ['Link','Unlink','Anchor'],
- ['Table','HorizontalRule','Smiley','SpecialChar','PageBreak'],
- '/',
+ ['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
+ ['NumberedList','BulletedList','-','Outdent','Indent'],
+ ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
+ ['Link','Unlink','Anchor'],
+ ['Table','HorizontalRule','SpecialChar'],
+ '/',
['Source','-','Preview'],
- ['Cut','Copy','Paste','PasteText','PasteFromWord'],
+ ['Cut','Copy','Paste','PasteText','PasteFromLibreOffice'],
['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
- ['SpellCheck'],
'/',
['Styles','Format','Font','FontSize'],
['TextColor','BGColor'],
['Maximize','ShowBlocks','-','About']
];
-// to add split plugin add this to array of tools in your selected ToolbarSet
-// ['Split']
-// to add attachment plugin add this to array of tools in your selected ToolbarSet
-// ['Attachment']
-
/* END of BITWEAVER toolbar sets */
-// Enable additional plugins from the bw library of addons
-//config.extraPlugins = 'split';
-
// Lock resize function to bitweaver window.
-config.resize_minHeight = 300;
+config.resize_minHeight = 300;
config.resize_dir = 'vertical';
config.autoParagraph = false;
- enterMode: CKEDITOR.ENTER_P,
+config.enterMode = CKEDITOR.ENTER_P;
+
}; // End CKEDITOR.editorConfig function
diff --git a/ckconfig.custom.js b/ckconfig.custom.js
index ef05eeb..321bde5 100644
--- a/ckconfig.custom.js
+++ b/ckconfig.custom.js
@@ -1,24 +1,26 @@
-// $header$
+// $header$
+// Custom CKEditor configuration — copy of ckconfig.bitweaver.js as a starting point.
+// Enable via admin: ckeditor_custom_config feature (theme override at styles/<theme>/ckeditor/ckconfig.custom.js).
CKEDITOR.editorConfig = function( config ) {
- //Disable core plugins not required
- config.removePlugins = 'scayt';
+ // Remove bundled plugins not required
+ // config.removePlugins = 'elementspath';
- //Enable additional plugins from the bw library of addons
- config.extraPlugins = 'aspell';
+ // Enable additional plugins
+ // config.extraPlugins = 'bt_table,bootstrapTabs';
/* Start of BITWEAVER toolbar sets */
config.toolbar_Supported = [
['Source','-','Preview'],
- ['Cut','Copy','Paste','PasteText','PasteFromWord','-','Print','SpellCheck'],
+ ['Cut','Copy','Paste','PasteText','PasteFromLibreOffice','-','Print'],
['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
'/',
['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
['NumberedList','BulletedList','-','Outdent','Indent'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
['Link','Unlink','Anchor'],
- ['Table','HorizontalRule','Smiley','SpecialChar','PageBreak'],
+ ['Table','HorizontalRule','SpecialChar'],
'/',
['Styles','Format','Font','FontSize'],
['TextColor','BGColor'],
@@ -29,33 +31,33 @@ CKEDITOR.editorConfig = function( config ) {
['Bold','Italic','Underline'],
['NumberedList','BulletedList'],
['Link','Unlink','Anchor'],
- ['Table','HorizontalRule','Smiley','SpecialChar','PageBreak'],
+ ['Table','HorizontalRule','SpecialChar'],
['Maximize','-','About']
];
config.toolbar_Intermediate = [
- ['Cut','Copy','Paste','PasteText','PasteFromWord'],
+ ['Cut','Copy','Paste','PasteText','PasteFromLibreOffice'],
['Undo','Redo','-','Find','Replace','-','SelectAll'],
'/',
['Bold','Italic','Underline'],
['NumberedList','BulletedList','-','Outdent','Indent'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
['Link','Unlink','Anchor'],
- ['Table','HorizontalRule','Smiley','SpecialChar','PageBreak'],
+ ['Table','HorizontalRule','SpecialChar'],
'/',
['TextColor','BGColor'],
['Maximize','-','About']
];
config.toolbar_Advanced = [
- ['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
- ['NumberedList','BulletedList','-','Outdent','Indent'],
- ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
- ['Link','Unlink','Anchor'],
- ['Table','HorizontalRule','Smiley','SpecialChar','PageBreak'],
- '/',
+ ['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
+ ['NumberedList','BulletedList','-','Outdent','Indent'],
+ ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
+ ['Link','Unlink','Anchor'],
+ ['Table','HorizontalRule','SpecialChar'],
+ '/',
['Source','-','Preview'],
- ['Cut','Copy','Paste','PasteText','PasteFromWord'],
+ ['Cut','Copy','Paste','PasteText','PasteFromLibreOffice'],
['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
'/',
['Styles','Format','Font','FontSize'],
@@ -63,16 +65,11 @@ CKEDITOR.editorConfig = function( config ) {
['Maximize','ShowBlocks','-','About']
];
- // to add split plugin add this to array of tools in your selected ToolbarSet
- // ['Split']
- // to add attachment plugin add this to array of tools in your selected ToolbarSet
- // ['Attachment']
-
/* END of BITWEAVER toolbar sets */
- // Lock resize function to bitweaver window.
config.resize_minHeight = 300;
config.resize_dir = 'vertical';
config.autoParagraph = false;
+ config.enterMode = CKEDITOR.ENTER_P;
}; // End CKEDITOR.editorConfig function