How to use Firefox dictionary from Javascript
I know Firefox has its own dictionary used when I enter words in a text box. How can I use and access the dictionary from javascript? If it is complicated, like having to write a C program, that ugly, but OK. There are two functionalities that I will need: 1) Is this a word? 2) Is this the start of a word? Being able to do both at the same time would be nice. For 2) a list of letters the word could continue with would be nice
Все ответы (2)
See:
- resource://gre/modules/InlineSpellChecker.jsm
- http://mxr.mozilla.org/mozilla-release/source/toolkit/modules/InlineSpellChecker.jsm
Изменено
I want to invoke functions from javascript (will <script src='http://mxr.mozilla.org/mozilla-release/source/toolkit/modules/InlineSpellChecker.jsm'> do that?. I want to use same module that Firefox is using. If I need to point to right language, that is OK).