question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Does not integrate with Chrome's spell check

See original GitHub issue

Code 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:closed
  • Created 11 years ago
  • Comments:26 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
friksacommented, Jan 4, 2014

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.

1reaction
WesCossickcommented, Jul 17, 2015

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found