react-codemirror icon indicating copy to clipboard operation
react-codemirror copied to clipboard

Code editor is checking spelling even spellCheck is false

Open Tula-Magar opened this issue 3 years ago • 4 comments

I don't know why but the spellCheck isn't working

`

     <CodeMirror
        value={value}  
        spellCheck="false"
        options={{
          spellCheck:"false",
        }}
      extensions={[
        markdown({ base: markdownLanguage, codeLanguages: languages }),
      ]}      
    />`

Tula-Magar avatar Jun 17 '22 15:06 Tula-Magar

@Tula-Magar What version are you using? Can you provide an example using https://codesandbox.io/?

jaywcjlove avatar Jun 17 '22 15:06 jaywcjlove

@jaywcjlove I was out on the weekend. I am currently using the following:

Package.json

"@uiw/react-codemirror": "^4.9.2",
"@codemirror/lang-markdown": "^6.0.0",
"@codemirror/language-data": "^6.1.0",

I tried writing example code in the codesandbox.io but the code sandbox doesn't show any error. However, the same code shows a red underline in the const on the browser editor such as chrome and firebox. Here is the link: https://codesandbox.io/s/code-mirror-spellcheck-q1d21y?file=/src/App.js

Tula-Magar avatar Jun 20 '22 12:06 Tula-Magar

Figured out why the spell was checking. Grammarly extension on browser was checking the spelling so, I turn off the Grammarly from the browser and I no longer get a spelling error in the code. Is there a way to disable a Grammarly or browser extension in react? If I find the solution to turn off the spelling checking then I will post it for future reference.

Tula-Magar avatar Jun 20 '22 18:06 Tula-Magar

https://discuss.codemirror.net/t/os-level-spellcheck-is-disabled-on-ios-even-after-adding-contentattribute/4128

I didn't find a good solution, but codemirror seems to disable spell checking. @Tula-Magar

jaywcjlove avatar Jun 20 '22 21:06 jaywcjlove