Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-27-2013, 10:38 PM   PM User | #1
xelawho
Senior Coder

 
xelawho's Avatar
 
Join Date: Nov 2010
Posts: 2,461
Thanks: 52
Thanked 457 Times in 455 Posts
xelawho will become famous soon enoughxelawho will become famous soon enough
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...
xelawho is offline   Reply With Quote
Old 01-28-2013, 12:50 PM   PM User | #2
rnd me
Senior Coder

 
rnd me's Avatar
 
Join Date: Jun 2007
Location: Urbana
Posts: 3,553
Thanks: 9
Thanked 480 Times in 463 Posts
rnd me is a jewel in the roughrnd me is a jewel in the roughrnd me is a jewel in the roughrnd me is a jewel in the rough
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 5/13)
STATS (2013/5) HTML5:90.2% MOB:15.2% IE7:0.5% IE8:8.4% IE9:8.5% IE10:8.5%
rnd me is offline   Reply With Quote
Old 01-28-2013, 03:19 PM   PM User | #3
xelawho
Senior Coder

 
xelawho's Avatar
 
Join Date: Nov 2010
Posts: 2,461
Thanks: 52
Thanked 457 Times in 455 Posts
xelawho will become famous soon enoughxelawho will become famous soon enough
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
xelawho is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:40 AM.


Advertisement
Log in to turn off these ads.