2

拼写检查在我的 CKEditor 中不起作用。我试过disableNativeSpellChecker = false但徒劳无功。这是我的 config.js。我的 CKEditor 版本是 4.5.6 知道吗?

CKEDITOR.editorConfig = function( config ) {
// Define changes to default configuration here.
// For complete reference see:
// http://docs.ckeditor.com/#!/api/CKEDITOR.config
config.disableNativeSpellChecker = true;
// The toolbar groups arrangement, optimized for two toolbar rows.
config.toolbarGroups = [
    { name: 'clipboard',   groups: [ 'clipboard', 'undo' ] },
    { name: 'editing',     groups: [ 'find', 'selection'] },
    { name: 'links' },
    { name: 'insert' },
    { name: 'forms' },
    { name: 'tools' },
    { name: 'document',    groups: [ 'mode', 'document', 'doctools' ] },
    { name: 'others' },
    { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
    { name: 'paragraph',   groups: [ 'list', 'indent', 'blocks', 'align', 'bidi' ] },
    { name: 'styles' },
    { name: 'colors' },
    { name: 'about' }
];

// Use line below for line break in toolbar
//      '/',

// Html encode ouput
config.htmlEncodeOutput = true;

config.removePlugins = 'elementspath,maximize,scayt';

// Remove some buttons provided by the standard plugins, which are
// not needed in the Standard(s) toolbar.
config.removeButtons = 'Strike,Subscript,Superscript,Source,About,Styles,Blockquote,Link,Unlink,Anchor,Image,Table,HorizontalRule,SpecialChar';

// Set the most common block elements.
config.format_tags = 'p;h1;h2;h3;pre';

// Simplify the dialog windows.
config.removeDialogTabs = 'image:advanced;link:advanced';
};
4

2 回答 2

2

通过将以下代码添加到 config.js 来集成浏览器拼写检查

config.disableNativeSpellChecker = false;
config.removePlugins = 'liststyle,tabletools,scayt,menubutton,contextmenu';
于 2016-05-08T20:03:22.040 回答
-1

按住 SHIFT 键,然后在文本上单击鼠标右键。

此时将显示带有选项的常用上下文菜单。

在 Linux 上,您可以使用 SHIFT 或 CONTROL 键。

在 Mac 上,您可以使用 SHIFT 或 COMMAND 键。

这是带有和不带有修饰键的屏幕截图。

不带 SHIFT 键

用 SHIFT 键

于 2018-03-27T14:55:06.113 回答