Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Senior Coder xelawho's Avatar
    Join Date
    Nov 2010
    Posts
    2,969
    Thanks
    56
    Thanked 557 Times in 554 Posts

    accessing firefox's spellcheck

    hello,

    I'm trying to make a spellchecker that will let users step through misspelled words in content editable divs, like the way you can when you spellcheck a word document. It only needs to work in firefox, so I figure using firefox's built-in spellchecker would be the easiest way.

    I see here:
    https://developer.mozilla.org/en/doc...hecking_in_XUL
    that you can access FF's spellchecker when writing extensions for firefox, but I'm kind of hoping a) not to have to make it an extension that you have to install to use and b) not to have to learn how to write an add-on.

    Does anybody know any way that I can access FF's spellchecker just using javascript? Even being able to detect which words have the little squiggly red underline would be enough, but I can't even see a way to do that.

    thanks in advance for any suggestions...

  • #2
    Senior Coder rnd me's Avatar
    Join Date
    Jun 2007
    Location
    Urbana
    Posts
    4,333
    Thanks
    11
    Thanked 587 Times in 568 Posts
    you can't call the firefox code or interface form JS. at all.

    BUT, last i saw, that part of firefox is written in open-source javascript. you could download the code and word dictionary they use.
    my site (updated 13/9/26)
    BROWSER STATS [% share] (2014/5/28) IE7:0.1, IE8:5.3, IE11:8.4, IE9:3.2, IE10:3.2, FF:18.2, CH:46, SF:7.9, NON-MOUSE:32%

  • #3
    Senior Coder xelawho's Avatar
    Join Date
    Nov 2010
    Posts
    2,969
    Thanks
    56
    Thanked 557 Times in 554 Posts
    Thanks for confirming what I feared, rnd me.

    I decided not to be so lazy and to build an extension, so now I am trying to get my head around XUL, which I only vaguely knew existed until yesterday. But thankfully Mozilla's documentation is very good, so I am plodding along.

    I'll keep the source code option in mind, though, in case i get really stuck


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •