summaryrefslogtreecommitdiff
path: root/ckconfig.custom.js
diff options
context:
space:
mode:
authorlsces <lester@lsces.co.uk>2012-06-10 19:06:04 +0100
committerlsces <lester@lsces.co.uk>2012-06-10 19:06:04 +0100
commit5e89e9eca2abf41d006b6db4a226c55b32ba523e (patch)
treea342b86a1993f37278954a9476cc3e345d3908c9 /ckconfig.custom.js
parent41862ed75177d66a7e7a736a1d80544bd94348f4 (diff)
downloadckeditor-5e89e9eca2abf41d006b6db4a226c55b32ba523e.tar.gz
ckeditor-5e89e9eca2abf41d006b6db4a226c55b32ba523e.tar.bz2
ckeditor-5e89e9eca2abf41d006b6db4a226c55b32ba523e.zip
Disable chargable spellchecker plugin and enable aspell
Needs aspell installed to work.
Diffstat (limited to 'ckconfig.custom.js')
-rw-r--r--ckconfig.custom.js126
1 files changed, 64 insertions, 62 deletions
diff --git a/ckconfig.custom.js b/ckconfig.custom.js
index 8e0239b..6a1ab55 100644
--- a/ckconfig.custom.js
+++ b/ckconfig.custom.js
@@ -2,74 +2,76 @@
CKEDITOR.editorConfig = function( config ) {
-/* Start of BITWEAVER toolbar sets */
-config.toolbar_Supported = [
- ['Source','-','Preview'],
- ['Cut','Copy','Paste','PasteText','PasteFromWord','-','Print','SpellChecker'],
- ['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'],
- '/',
- ['Styles','Format','Font','FontSize'],
- ['TextColor','BGColor'],
- ['Maximize','ShowBlocks','-','About']
-];
+ //Disable core plugins not required
+ config.removePlugins = 'scayt';
-config.toolbar_Beginner = [
- ['Bold','Italic','Underline'],
- ['NumberedList','BulletedList'],
- ['Link','Unlink','Anchor'],
- ['Table','HorizontalRule','Smiley','SpecialChar','PageBreak'],
- ['Maximize','-','About']
-];
+ //Enable additional plugins from the bw library of addons
+ config.extraPlugins = 'aspell';
-config.toolbar_Intermediate = [
- ['Cut','Copy','Paste','PasteText','PasteFromWord'],
- ['Undo','Redo','-','Find','Replace','-','SelectAll'],
- '/',
- ['Bold','Italic','Underline'],
- ['NumberedList','BulletedList','-','Outdent','Indent'],
- ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
- ['Link','Unlink','Anchor'],
- ['Table','HorizontalRule','Smiley','SpecialChar','PageBreak'],
- '/',
- ['TextColor','BGColor'],
- ['Maximize','-','About']
-];
+ /* Start of BITWEAVER toolbar sets */
+ config.toolbar_Supported = [
+ ['Source','-','Preview'],
+ ['Cut','Copy','Paste','PasteText','PasteFromWord','-','Print','SpellCheck'],
+ ['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'],
+ '/',
+ ['Styles','Format','Font','FontSize'],
+ ['TextColor','BGColor'],
+ ['Maximize','ShowBlocks','-','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'],
- '/',
- ['Source','-','Preview'],
- ['Cut','Copy','Paste','PasteText','PasteFromWord'],
- ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
- ['SpellCheck'],
- '/',
- ['Styles','Format','Font','FontSize'],
- ['TextColor','BGColor'],
- ['Maximize','ShowBlocks','-','About']
-];
+ config.toolbar_Beginner = [
+ ['Bold','Italic','Underline'],
+ ['NumberedList','BulletedList'],
+ ['Link','Unlink','Anchor'],
+ ['Table','HorizontalRule','Smiley','SpecialChar','PageBreak'],
+ ['Maximize','-','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']
+ config.toolbar_Intermediate = [
+ ['Cut','Copy','Paste','PasteText','PasteFromWord'],
+ ['Undo','Redo','-','Find','Replace','-','SelectAll'],
+ '/',
+ ['Bold','Italic','Underline'],
+ ['NumberedList','BulletedList','-','Outdent','Indent'],
+ ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
+ ['Link','Unlink','Anchor'],
+ ['Table','HorizontalRule','Smiley','SpecialChar','PageBreak'],
+ '/',
+ ['TextColor','BGColor'],
+ ['Maximize','-','About']
+ ];
-/* END of BITWEAVER toolbar sets */
+ 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'],
+ '/',
+ ['Source','-','Preview'],
+ ['Cut','Copy','Paste','PasteText','PasteFromWord'],
+ ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
+ '/',
+ ['Styles','Format','Font','FontSize'],
+ ['TextColor','BGColor'],
+ ['Maximize','ShowBlocks','-','About']
+ ];
-//Enable additional plugins from the bw library of addons
-//config.extraPlugins = 'split';
+ // 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']
-// Lock resize function to bitweaver window.
-config.resize_minHeight = 300;
-config.resize_dir = 'vertical';
+ /* END of BITWEAVER toolbar sets */
+
+ // Lock resize function to bitweaver window.
+ config.resize_minHeight = 300;
+ config.resize_dir = 'vertical';
}; // End CKEDITOR.editorConfig function