Mar*_*tyn 5 javascript ckeditor
我一直无情地删除按钮/插件,但我找不到如何删除拼写检查按钮.我已设法删除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';
};
Run Code Online (Sandbox Code Playgroud)
我还尝试添加各种拼写变体来删除按钮,例如拼写检查,拼写检查,拼写等.我需要设置什么?
Mar*_*ski 16
如果你只想删除按钮,但保留插件,那么只需使用:
config.removeButtons = 'Scayt';
Run Code Online (Sandbox Code Playgroud)
至于删除插件,以下配置应该完成这项工作:
config.removePlugins = 'wsc,scayt';
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2970 次 |
| 最近记录: |