Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make spell checker work for CKeditor wysiwyg editor

Any edit box that I open in Firefox comes with a spell checking capability which is somehow integrated by Firefox or browsers in general. I have a small php script which users ckeditor wysiwyg editor. How can I make spell checker active for the edit area of ckeditor? PS. Also an updated version of solution provided here will be appreciated too.

like image 857
C graphics Avatar asked Nov 12 '12 00:11

C graphics


People also ask

How do I enable spell check in Ckeditor?

If you want to turn on the Spell Check As You Type (SCAYT) feature in CKEditor 4 by default, set the CKEDITOR. config#scayt_autoStartup configuration setting to true .

How do I enable spell check?

Go to Settings. languages. To the right of 'Spell check', turn it on or off.

What program do I use to check my spelling?

Grammarly is probably the most recognized grammar check software on the market and offers real-time spelling and grammar checking to help improve writing. Users can set writing goals, including details about the intended audience, emotion, intent, style and domain to receive insights based on these goals.


2 Answers

config.disableNativeSpellChecker = false;

More here: http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html#.disableNativeSpellChecker

It switches on the browser's native spell checker. Now you probably would like to have also native context menu, in which user can e.g. pick correct version of word proposed by dictionary. By default native context menu can be opened if you press ctrl+right click. That isn't obvious and the only way to solve this issue is by removing contextmenu plugin:

config.removePlugins = 'contextmenu';

Now you'll have native spellchecker and native context menu.

like image 133
Reinmar Avatar answered Nov 15 '22 03:11

Reinmar


config.disableNativeSpellChecker = false

like image 45
Waterfr Villa Avatar answered Nov 15 '22 04:11

Waterfr Villa