Force spell check in content editable div in xulrunner
Douglas <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.editor |
|---|---|
| Organization | http://groups.google.com |
| Message-ID | <[email protected]> |
Hello,
I have an xulrunner app structured like this:
<window>
<browser id="browser" src="http://localhost/mypage.htm"/>
</window>
And mypage.htm has a structure like this:
<html><body>
<div style="border: 1px solid red; min-height: 60px;" id="c"
contenteditable="true">Speeling <b>mistak</b></div>
</body></html>
What I would like to do, is hook up, say, F7, so that when pressed, I
work through the div, alerting the user to spelling mistakes.
Inside browser.onkeypress I can check for F7, and find the div using:
document.activeElement.contentWindow.document.getElementById("c");
Is there a library/something I can call to spell check this, like
using InlineSpellCheckerUI to populate spellcheck context menus?
If there are no errors, I would like to display a "Spell check
complete, no errors found" window.
Thanks,
Douglas