Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to enable browser spell check in CKEditor 4?

Tags:

ckeditor

Supposedly CKEditor has built-in spell check, but I've never seen it work (not even on their live demo site) and so in CKEditor 3 I added the following to the config function to enable browser spell check and enable the browser context menu:

config.disableNativeSpellChecker = false;
config.removePlugins = 'scayt,menubutton,contextmenu';

However, this doesn't seem to work in CKEditor 4.

How can I enable the browser spell checker and context menu in CKEditor 4?

like image 716
Nate Avatar asked Jun 03 '13 18:06

Nate


2 Answers

I found that using the CKEditor Builder and removing SCAYT plugin, then putting the code in my question in the config function works.

like image 25
Nate Avatar answered Oct 05 '22 03:10

Nate


It happens because contextmenu plugin is required by other plugins: Plugin "contextmenu" cannot be removed from the plugins list, because it's required by "liststyle" and "tabletools" plugin.

But actially spellcheck should work, but since the Context Menu plugin is enabled, it is necessary to hold the Ctrl key when right-clicking misspelled words to see their suggestions.

Refer CKEditor Spell Checking documentation

like image 172
Sergey Ponomarev Avatar answered Oct 05 '22 02:10

Sergey Ponomarev