Search code examples
spell-checkingckeditor4.x

CKEditor 4 - How to deactivate spellcheck in Source view


In wysiwyg mode using CKEditor 4, spellcheck is not enabled. Words can be misspelt & ignored by the Editor as below. This is desired behaviour in our case.screenshot of misspelt word being ignored which is the desired behaviour in our scenario

In Source view however, the same word is picked up as misspelt with a red dotted underline which is not desired behaviour in our case. screenshot of same misspelt word being picked up & marked with red dotted line

How do we prevent spellcheck running (assuming this is what's triggering the red dotted underline) when viewing content in Source view & thereby also stop html code being highlighted with dotted red underlines because the spellcheck simply doesn't recognise them?


Solution

  • I tested the following official demo link: https://sdk.ckeditor.com/samples/spellchecker.html

    1- Disable the spell checker via the ABC button in the toolbar

    2- Disable the browser's native spellchecker

    On Chrome: Settings > Advanced Settings > Languages > Spell Check (turn off the active languages)

    All errors both in WYSIWYG and Source windows should be gone.

    Other possible solutions: