Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CKEditor: How to hide the spell checker button

I've been ruthlessly removing buttons/plugins but I just can't find how to remove the spell checker button. I've managed to remove the SCAYT plugin so that no longer shows but the spell checker button won't budge:

CKEDITOR.editorConfig = function( config ) {
    config.resize_enabled = false;
    config.removeButtons = 'Cut,Copy,Paste,PasteText,PasteFromWord,Undo,Redo,Anchor,Underline,Strike,Subscript,Superscript,addFile,Image,Table,Styles,Format,Maximize,HorizontalRule,Unlink,Blockquote,Indent,Outdent,RemoveFormat,Source,Spell';
    config.removePlugins = 'about,specialchar,scayt,spellchecker,elementspath,resize';
};

I've also tried adding various spelling variations to removeButtons such as SpellChecking, SpellCheck, Spelling etc. What do I need to set?

like image 501
Martyn Avatar asked Jan 11 '15 04:01

Martyn


1 Answers

If you want just to remove the button, but keep the plugin, then just use:

config.removeButtons = 'Scayt';

As for the removing plugins, following config should do the job:

config.removePlugins = 'wsc,scayt';
like image 75
Marek Lewandowski Avatar answered Oct 10 '22 15:10

Marek Lewandowski