#2125: The #1990 bug is back again.
-----------------------------+----------------------------------------------
Reporter: MarkWB | Type: Bug
Status: new | Priority: Normal
Milestone: FCKeditor 2.6.1 | Component: UI : Dialogs
Version: SVN | Keywords:
-----------------------------+----------------------------------------------
I hate to be a pest about the same thing over and over again, but the bug
as reported in #1990 is back as originally stated for both 2.6 and the
SVN.
For whatever reason, the condition put in place to fix #2057, which was
the fix for the flashing problem of the fix for #1990, that detects
whether the selection has already been restored is always true when
running the simple plugin attached to #1990. Therefore, the selection
never does get restored hence why the original #1990 problem.
Perhaps the logic implemented by #2057 will only work if the
EditorDocument doesn't have focus. This is my guess because if I rearrange
lines 152 thru 155 in the InsertHtml function of 'fck_ie.js' such that
FCKUndo.SaveUndoStep() happens before setting focus:
{{{
FCKUndo.SaveUndoStep() ;
// FCK.Focus() ;
FCK.EditorWindow.focus() ;
}}}
that seems to fix it. Perhaps logic of #2057 should be reviewed if needed
for other broken circumstances. Putting that save undo call before the
InsertHtml() call in the plugin also works around it. (What fun could you
have without IE?)
FYI... The FCKSelection.Restore() function gets called a lot, even when
there is no active dialog. Not much can be done with the editor per 100
times this gets called. However, the call rate gets drastically reduced
after a positive response (e.g. OK button) to a dialog.
--
Ticket URL: <http://dev.fckeditor.net/ticket/2125>
FCKeditor <http://www.fckeditor.net>
The text editor for Internet
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
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