#2018: FCKeditorAPI is not cleaned up when removing editor instances manually 
from
the page
----------------------+-----------------------------------------------------
  Reporter:  fredck   |       Owner:  martinkou      
      Type:  Bug      |      Status:  assigned       
  Priority:  Normal   |   Milestone:  FCKeditor 2.6.1
 Component:  General  |     Version:  FCKeditor 2.5  
Resolution:           |    Keywords:  Confirmed      
----------------------+-----------------------------------------------------
Comment (by martinkou):

 I can't really think of any simple hack to fix this without breaking #183
 - which unfortunately is also quite important.

 There seems to be no way of knowing whether FCKeditor is running under a
 browser or an embedded browser control, so we can't just target the
 onbeforeunload trick to Microsoft's WebBrowser control. There are two
 alternatives that I can think of, but they may bring problems themselves:

  1. Use the topmost window hosting FCKeditorAPI to detect whether an
 editor iframe who'd raised the unload event is really removed from the DOM
 tree, with a timeout. If it is not removed, then don't delete it from the
 FCKeditorAPI.Instances dictionary. Potential problem: Is it possible for
 editor instances to be removed without removing its iframe element?
  1. We define a method for removing FCKeditor instances and ask the web
 developers to use it in our documentation instead of using
 element.removeChild($editorIframe). Potential problem: A lot of people
 don't read the documentation...

 Related to point 2. I've found from a support request last week that
 removing FCKeditor instances by element.removeChild($editorIframe) doesn't
 work at present, as it will cause JavaScript errors.

-- 
Ticket URL: <https://dev.fckeditor.net/ticket/2018#comment:2>
FCKeditor <http://www.fckeditor.net>
The text editor for Internet
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac

Reply via email to