#234: Microsoft Asp.net 2.0 AJAX UpdatePanel Bug
-------------------------------+--------------------------------------------
  Reporter:  Anksunamon        |       Owner:                 
      Type:  Bug               |      Status:  new            
  Priority:  Normal            |   Milestone:  FCKeditor 2.6.1
 Component:  Server : ASP.Net  |     Version:  FCKeditor 2.4  
Resolution:                    |    Keywords:  Confirmed      
-------------------------------+--------------------------------------------
Comment (by serializer):

 Further notes from stepping through script execution with Firebug...

 I think the error begins with _AttachFormSubmitToAPI in fckeditorapi.js.
 It attaches an event listener to the parent form's 'submit' event. This
 seems to be getting fired '''after''' each AJAX postback, '''after''' the
 editor has been removed from the DOM By this time the editor must have
 been deleted from the DOM, and the FCK object doesn't exist, causing the
 errors. It all seems like MS and/or Firefox being a bit backward but
 that's what it looks like is happening...

 I'm experimenting with adding a _DetachFormSubmitFromAPI function in
 fckeditorapi.js itself and finding some way to fire it on the AJAX
 component's dispose event (or similar).

 -- Additionally I noted that in fckeditorapi.js you add an event listener
 on 'beforeunload' as well as 'unload'. However in this situation at least,
 the 'beforeunload' event doesn't get fired, just 'unload'; so the
 window.FCKUnloadFlag doesn't get set and the FCKeditorAPI_Cleanup()
 function does nothing. I'm not even sure what the purpose of
 FCKeditorAPI_ConfirmCleanup() is... But perhaps I could add a call to
 _DetachFormSubmitFromAPI into that Cleanup function? I think this would be
 a reasonable cleanup operation whatever the circumstance.

-- 
Ticket URL: <http://dev.fckeditor.net/ticket/234#comment:17>
FCKeditor <http://www.fckeditor.net>
The text editor for Internet
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac

Reply via email to