CKEditor 3.6.3 Enable browser spellcheck and disab

2019-06-25 13:48发布

问题:

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';