Re: Use of Spellchecker inside a designMode document in iframe

Neil <[email protected]>
Newsgroups gmane.comp.mozilla.devel.editor
Message-ID <[email protected]>
[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.

-- 
Warning: May contain traces of nuts.
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.