如何在CKEditor 4中启用浏览器拼写检查?

Nat*_*ate 6 ckeditor

据说CKEditor有内置的拼写检查,但我从来没有看到它工作(甚至没有在他们的现场演示网站上)所以在CKEditor 3中我将以下内容添加到配置功能以启用浏览器拼写检查并启用浏览器上下文菜单:

config.disableNativeSpellChecker = false;
config.removePlugins = 'scayt,menubutton,contextmenu';
Run Code Online (Sandbox Code Playgroud)

但是,这似乎在CKEditor 4中不起作用.

如何在CKEditor 4中启用浏览器拼写检查和上下文菜单?

sto*_*ito 5

发生这种情况是因为contextmenu其他插件需要插件: Plugin "contextmenu" cannot be removed from the plugins list, because it's required by "liststyle" and "tabletools" plugin.

但是实际上拼写检查应该可以工作,但是由于Context Menu启用了插件,因此Ctrl在右键单击拼写错误的单词以查看其建议时需要按住该键。

请参阅 CKEditor拼写检查文档


Nat*_*ate 1

我发现使用CKEditor Builder并删除 SCAYT 插件,然后将代码放在我的问题中的配置函数中是可行的。