拼写检查无法在CKEditor中使用

时间:2016-05-07 15:17:56

标签: ckeditor ckeditor4.x ckeditor.net

拼写检查在我的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';
};

2 个答案:

答案 0 :(得分:2)

通过将以下代码添加到config.js

来集成浏览器拼写检查
config.disableNativeSpellChecker = false;
config.removePlugins = 'liststyle,tabletools,scayt,menubutton,contextmenu';

答案 1 :(得分:-1)

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

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

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

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

以下是WITH和WITHOUT修饰键的截图。

Without SHIFT key

With SHIFT key