我一直在无情地删除按钮/插件,但我只是找不到如何删除拼写检查器按钮。我设法删除了SCAYT插件,以便不再显示,但拼写检查器按钮不会退缩:

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';
};

我还尝试向removeButtons添加各种拼写变体,例如SpellChecking,SpellCheck,Spelling等。我需要设置什么?

最佳答案

如果只想删除按钮,但保留插件,则只需使用:

config.removeButtons = 'Scayt';

至于删除插件,请执行以下配置:
config.removePlugins = 'wsc,scayt';

关于javascript - CKEditor:如何隐藏拼写检查器按钮,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/27884086/

10-10 00:52
查看更多