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

Chrome built-in spellcheck #630

Open
guar47 opened this issue Aug 30, 2017 · 6 comments
Open

Chrome built-in spellcheck #630

guar47 opened this issue Aug 30, 2017 · 6 comments

Comments

@guar47
Copy link

guar47 commented Aug 30, 2017

Hello, guys!
I use the editor, but faced with a problem.
Inside the edit field (CodeMirror clases) if I make typing mistakes it's not noticed by Chrome spellchecker (however 'input' elements for example, on the different spots of the page checking correctly by Chrome).
I think it's because you use <span> element and they are not catching by Chrome.
I tried to add spellchecker="true" and contenteditable="true" to through elt() function, but it wasn't help. Attributes added, but Chrome checker didn't work.
I would love to use your codemirror-spell-checker, But I need to check not English language.

Can you help me with this issue?

@guar47
Copy link
Author

guar47 commented Sep 6, 2017

I found the place where you switch off spellcheck:

function te(e) {
                    e.setAttribute("autocorrect", "off"),
                        e.setAttribute("autocapitalize", "off"),
                        // e.setAttribute("spellcheck", "false")
                }

@i5heu
Copy link

i5heu commented Sep 16, 2017

The codemirror-spell-checker is yet not ready for multiply languages.
its depends on -> sparksuite/codemirror-spell-checker#16

have you found a solution to use the chrome spell checker?

@guar47
Copy link
Author

guar47 commented Sep 16, 2017

unfortunately no, remove e.setAttribute("spellcheck", "false") from code, not helped.

@i5heu
Copy link

i5heu commented Sep 16, 2017

yeh im struggling with this too.

this editor is not usable for people who speak other languages than english :(
if there is now spellcheck

@eutampieri
Copy link

If you look sparksuite/codemirror-spell-checker#16 you’ll notice thai a fix exists, however the pull request isn’t merged yet. Refer to #658 too

@trianity
Copy link

It would be good if the Chrome built spellchecker can be used in CodeMirror

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

No branches or pull requests

4 participants