Does not integrate with Chrome's spell check
See original GitHub issueCode snippet:
<div style="width:200px" contenteditable="true" spellcheck="true">
<textarea id="code" name="code">
javaCode {
stuff
}
aaaaaaaaaaaaaa
<a>abc</a>;
</textarea>
</div>
<script>
var editor = CodeMirror.fromTextArea(document.getElementById("code"),
{
lineNumbers: true,
lineWrapping: true,
mode: "htmlxml"
});
</script>
<div contenteditable="true" spellcheck="true">
pure content editable div. asdf asdf yoh.
</div>
In Firefox if browser spell check is enabled then inside the editor words are marked. In Chrome, it doesn’t work (maybe not entirely. Sometimes I can trigger one word to be marked but not consistently).
NOTE
I also included a pure content editable div underneath. In Chrome, it won’t mark spelling error at page load time. But once focusing on the word or start editing the content, spell check take into effect. So not sure if is this a Chrome thing or CodeMIrror thing.
Issue Analytics
- State:
- Created 11 years ago
- Comments:26 (9 by maintainers)
Top Results From Across the Web
7 Quick Ways to Make Chrome's Spell Check Work Again
If Chrome's spell check is not working, it's generally a corrupt cache, misconfigured settings, or a conflict with the website to be blamed....
Read more >Turn Chrome spell check on and off - Google Support
Turn Chrome spell check on and off · Go to Settings. · Click Advanced and then languages. · To the right of 'Spell...
Read more >Google Chrome Spell Checker Not Working? - Calendar App
If spell-check doesn't work while in Incognito Mode, it could be because spell-checking hasn't been enabled or the manager of the account has...
Read more >Fix: Chrome Spellcheck Not Working - Appuals.com
Solution 1: Check to see if the Feature is enabled. · Open a new tab in the browser. · Right-click on the empty...
Read more >Does not integrate with Chrome's spell check #1017 - GitHub
In Firefox if browser spell check is enabled then inside the editor words are marked. In Chrome, it doesn't work (maybe not entirely....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
CodeMirror documentation indicates that disableSpellcheck:false config option should do the trick, but it does not work. Using the built-in browser spell checking on a text area is a much better way to go than using a javascript library. Then I do not need to train multiple dictionaries and it knows my language regardless of where I am in the world. Seems like it is time to drop CodeMirror for Markdown and look at http://markitup.jaysalvat.com/home/ - sad… since I really like CodeMirror.
For those still wondering, or for future viewers, I’ve created a CodeMirror plugin that spell checks as your write. It’s super simple to set up. Check it out at: https://github.com/NextStepWebs/codemirror-spell-checker