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

Add ability to pass spellcheck and inputType options to CodeMirror #22

Closed
Cherry opened this issue Aug 21, 2018 · 3 comments
Closed

Add ability to pass spellcheck and inputType options to CodeMirror #22

Cherry opened this issue Aug 21, 2018 · 3 comments

Comments

@Cherry
Copy link

Cherry commented Aug 21, 2018

I'm submitting a...

  • Feature request

After adding

inputStyle: "contenteditable",
spellcheck: true

to the CodeMirror initialisation at https://github.com/Ionaru/easy-markdown-editor/blob/master/src/js/easymde.js#L1584, I was able to get spellchecking within the browser (at least Google Chrome) functional without any apparent issues. If we could pass these options (or arbitrary options that just had defaults) to the CodeMirror initialisation, that would be awesome.

PS. Thanks so much for this fork of simplemde. It powers our internal CMS and our staff love using it.

@Cherry
Copy link
Author

Cherry commented Apr 17, 2019

Any update on this? The built-in spellChecker is very limited and has many outstanding issues.

Being able to pass these options and enable the spellchecker built into the browser would be great, and would also help solve #78.

@Elmervc
Copy link

Elmervc commented Oct 23, 2019

It would be nice if one can provide additional CodeMirror options to EasyMDE (but use with caution).

I also prefer to use the browser's spell check facility, so for now I manually added the OP mentioned options to the CodeMirror initialisation. It seems to work correctly (tested on Chrome and FireFox) The cursor jumps to line start when using formatting buttons.

@A-312
Copy link

A-312 commented Jan 27, 2020

@Ionaru this one is fixed by #143

@Ionaru Ionaru closed this as completed Jan 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants