#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):
I believe I've found a fix. By creating a DetachFormSubmit function in
fckeditorapi.js, and adding a call to it in the Cleanup function, I
thought I would have solved it. However there was an additional problem:
the Cleanup routine wasn't getting called, because the "beforeunload"
event wasn't getting fired. I'm not sure if this is due to the way ASP.NET
handles destruction of iframes, or a general symptom of dynamically
removing iframes in Firefox. Additionally, the ParentForm object didn't
seem to be available at the time of unload, so it wasn't possible to
detach the events then.
Either way, I attached an additional Cleanup function to the FCK object
itself, which calls the normal onbeforeunload and onunload functions. This
Cleanup function can be called manually before dynamically removing an
editor, to ensure it is disposed correctly.
I can't yet confirm whether this fixes the general scenario of #1255,
although it seems it should.
The onbeforeunload event handler merely sets a flag, which the onunload
won't do anything without. This is apparently needed only to fix #183, and
was added in rev. 546 (by martinkou). This is to prevent an issue when
running inside a WebBrowser control. I wonder if there's another way to
fix that issue, rather than requiring an extra call to a Cleanup function,
to work around this side effect of it?
I'll upload a patch against trunk as soon as I've tested further against
#1255.
--
Ticket URL: <http://dev.fckeditor.net/ticket/234#comment:24>
FCKeditor <http://www.fckeditor.net>
The text editor for Internet
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac