![Firefox logo](https://assets-prod.sumo.prod.webservices.mozgcp.net/media/uploads/products/2020-04-14-08-36-13-8dda6f.png)
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
Alle antwoorden (2)
See:
- resource://gre/modules/InlineSpellChecker.jsm
- http://mxr.mozilla.org/mozilla-release/source/toolkit/modules/InlineSpellChecker.jsm
Bewerkt door cor-el op
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).