Re: Use of Spellchecker inside a designMode document in iframe

[email protected]
Newsgroups gmane.comp.mozilla.devel.editor
Organization http://groups.google.com
Message-ID <[email protected]>
On Feb 21, 4:50 pm, Neil <[email protected]> wrote:
> [email protected] wrote:
> >I have an extension where the user edits text in an iframe in an XUL window. I set designMode to on in the iframe to allow editing of the document.
>
> >If I open the XUL window with window.open, then I get the full set of spellcheck facilities - misspelled words are underlined, I can right-click on them to get corrections or do "Add to Dictionary" etc.
>
> >But if I open it with window.openDialog, then I only get underlined misspelled words, none of the right-click facilities are available.
>
> >I'd like to use openDialog but have all of the spellcheck functionality. Does anyone have any hints on this?
>
> window.open opens the window inside a browser window, which is what's
> providing the context menu. If you're providing your own XUL window then
> you need to include the inlineSpellCheckUI.js object and integrate it
> with your context menu.

Thanks. So I essentially need to copy the browser's context menu
implementation in my code?

Matthew
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.