thlorenz / brace

📔 browserify compatible version of the ace editor.
http://thlorenz.github.io/brace/
MIT License
1.06k stars 304 forks source link

Is it possible to enable spellcheck with brace? #103

Open LeviRosol opened 6 years ago

LeviRosol commented 6 years ago

I seem to be having good luck using most of the other extensions, but spellcheck seems to be the problem child. Using some google-fu I see others having issues with Ace, but most of those posts appear to be old, so I'm wondering if I'm simply missing something.

I have my require setup as needed:

require('brace/ext/spellcheck')

and I've enabled it:

editor.setOption('spellcheck', true);

But I see nothing in the browser. If it helps, I'm in markdown mode, and I've tested in Chrome and FF.

To clarify, I'm looking for browser driven spell checking. Red squiggles and right clicking to see suggestions.

thx!

LeviRosol commented 6 years ago

curious if anyone else has gotten this to work?

LeviRosol commented 6 years ago

Update on this: I was able to get spellcheck to sort of work. I now have the red squiggles on misspelled words, and I can get suggestions to show up in the context menu, however, I cannot get it to actually replace the word with the selected word.

When I get a moment, I'll post more on how I got it working this far.

jakub-zawislak commented 5 years ago

Any updates? Could you share how you fixed this?

My code doesn't work:

import 'brace/ext/spellcheck'

// ...

editor.setOptions({
  spellcheck: true
})
wandonye commented 5 years ago

@LeviRosol Could you pls share how you get the red squiggles on misspelled words? I came across the same problem. Thanks~