Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to disable spell and grammar checking, or to use the right language #4

Open
adrienjoly opened this issue Jan 7, 2019 · 2 comments

Comments

@adrienjoly
Copy link
Owner

adrienjoly commented Jan 7, 2019

This would prevent distracting red blocks everywhere when editing a comment in French language, without having to disable the browser's grammar checking (I just checked: disabling Chrome's grammar checking does not remove the red blocks):

image

This could be caused by a en-us language specification in any of the components being used on that page. (EDIT: I found none, from Chrome's inspector)

@adrienjoly adrienjoly changed the title Let the browser detect the language for spelling and grammar checking, or allow to disable it Allow to disable spell and grammar checking, or to use the right language Jan 7, 2019
@adrienjoly
Copy link
Owner Author

Finding: The red blocks have the cm-spell-error CSS class, which seems to be added by https://github.com/sparksuite/codemirror-spell-checker

@adrienjoly
Copy link
Owner Author

adrienjoly commented Jan 7, 2019

Indeed, SimpleMDE (editor integrated into this power-up) = CodeMirror + codemirror-spell-checker, cf https://github.com/sparksuite/simplemde-markdown-editor

The spell checker could be disabled by adding the spellChecker: false prop (cf https://github.com/sparksuite/simplemde-markdown-editor#configuration) when instantiating new SimpleMDE in

var simplemde = new SimpleMDE({

Or it could be disabled dynamically by altering the styling of the cm-spell-error CSS class.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant