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 think I have it more or less sorted now. However the suggestions list is growing every time I right-click on a misspelled word.
>
>A bit of debug seems to show that there is a correct attempt to remove the items from the list in onpopuphiding, but the onpopupshowing code is being called twice. A call to 'event.stopPropagation()' didn't seem to help.
>  
>
Well, once I got your code working, I had no problems with a growing 
suggestions list. However, as a workaround, try removing the suggestions 
in the popupshowing code before adding the new suggestions.

><!DOCTYPE windows [
>  
>
Typo, should be window

>    width="500px" height="300px"
>  
>
width and height should be numbers (the px is ignored).

>            function onload ()
>  
>
onload is a bad choice of name for a function, because there is a 
compatibility property with the same name.

>                    var iframe = document.getElementById ("edit-
>frame");
>  
>
Your emailer wrapped your code badly.

-- 
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.