How to enable browser spell checking in CKEditor 4?

Presumably, CKEditor has built-in spell checking, but I never saw it work (even on my demo site), so in CKEditor 3 I added the following to the configuration function to enable spell checking and enable the browser context menu:

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

However, this does not work in CKEditor 4.

How can I enable spell checking and browser context menus in CKEditor 4?

+6
source share
6 answers

I found that using CKEditor Builder and removing the SCAYT plugin, then it puts the code in my question into the configuration function.

+1
source

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

But the spellchecking action should work, but since the Context Menu plugin is enabled, you must hold down the Ctrl key while right-clicking on misspelled words to see their sentences.

Refer to CKEditor Proofing Documentation

+3
source

To enable browser spelling, you must add the following configuration:

 config.removePlugins = 'liststyle,tabletools,scayt,menubutton,contextmenu'; 
+1
source

If you are using a basic package, simply do the following:

  CKEDITOR.replace(field, { disableNativeSpellChecker: false }); 
+1
source

shameless self-esteem

If you want an alternative to the platinum plugin

You can use the new spellchecker plugin for nanocell for ckeditor from http://ckeditor-spellcheck.nanospell.com/

It is not free - but it works without ads , behind a firewall on Linux, Windows and Java hosting.

0
source

Please enable scayt in the toolbar located in config.js. Please make sure you turn on “Scayt” if you made the editor using a customizable toolbar.

-2
source

Source: https://habr.com/ru/post/946438/


All Articles