[Greasemonkey] Calling Spellchecker in Greasemonkey?

abesez abhijeetsaran at gmail.com
Tue May 8 11:27:36 PDT 2007


Hi,

Trying to learn the ropes. I want text in a selected div to be underlined.
Wondering if I can use a greasemonkey script or need to learn how to write
an extension? From 
http://developer.mozilla.org/en/docs/Using_spell_checking_in_XUL Mozdev
Article   

gSpellCheckEngine =
Components.classes["@mozilla.org/spellchecker/myspell;1"]
                   
.getService(Components.interfaces.mozISpellCheckingEngine); 
gSpellCheckEngine.dictionary = 'en-US';

if (gSpellCheckEngine.check("kat")) {
    // It's spelled correctly    
}
else {
    // It's spelled incorrectly
}
-- 
View this message in context: http://www.nabble.com/Calling-Spellchecker-in-Greasemonkey--tf3711365.html#a10381298
Sent from the MozDev - greasemonkey mailing list archive at Nabble.com.



More information about the Greasemonkey mailing list