CKEditor 3.6.3 Enable browser spellcheck and disable context menu

流过昼夜 提交于 2019-12-10 15:27:58

问题


I'm trying to get a spellcheck into a very bare bones implementation of CKEditor. I've disabled ALL the toolbars and plugins, so we're just left with a simple text box that creates basic HTML.

Is it possible re-enable the browser/OS spellchecking?

The CKEditor contextual menu is also pretty useless. I wouldn't mind getting rid of that too if that's possible.


回答1:


There's a config setting that disables the built-in spell checker if a browser provides one. It's set to true by default, try setting it to false.

config.disableNativeSpellChecker = false;

You can try disabling the contextmenu plugin:

config.removePlugins = 'contextmenu';


来源:https://stackoverflow.com/questions/11549038/ckeditor-3-6-3-enable-browser-spellcheck-and-disable-context-menu

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!