Open TristanPouliquen opened 5 years ago
How hard would it be to fork
I did it, check my repo for more information.
Does #333 (specifying a custom CodeMirrorSpellChecker instance cover this use case?
@TristanPouliquen
I think #333 will solve your issue, you can use it in the config like this:
const editor = new EasyMDE({
spellChecker: (editor) => CodeMirrorSpellChecker({codeMirrorInstance: editor}),
});
Where CodeMirrorSpellChecker
is your custom spellchecker from https://github.com/TristanPouliquen/codemirror-spell-checker.
The custom spellchecker functionality is currently available on the easymde@next
branch and will be released after a few days if it satisfies the use-cases.
Hi, any news about this feature release? I need to use with a italian language/dict
Hi, do you have a working example ?
I always have "CodeMirror Spell Checker: You must provide an instance of CodeMirror via the option codeMirrorInstance
" error.
Is your feature request related to a problem? Please describe. I find quite limitating the idea that the spellCheck (coming from CodeMirror SpellChecker ) should only be on the American English dictionary.
Describe the solution you'd like How hard would it be to fork, take into account the changes from the actually open (and sadly stale) PR https://github.com/sparksuite/codemirror-spell-checker/pull/39 adding multi-language support and depend on this library rather than the official spellChecker (which appears as stale as SimpleMDE) ?
An addition would be to, perhaps, make a map between locales and the dictionaries from titoBozout's repository so that we could simplify the spellChecker attribute to:
locale
(for managed dictionaries){aff: string, dic: string}
(for custom dictionary as is implemented in the PR linked above)EDIT
I went on and forked SpellChecker to start what I had in mind ! :smiley: : https://github.com/TristanPouliquen/codemirror-spell-checker