Changeset 1064


Ignore:
Timestamp:
11/03/2007 01:17:17 PM (8 years ago)
Author:
martinkou
Message:

Fixed #1491 : Fixed the issue where erorrs occur across many operations when an empty list item element is selected in IE.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • FCKeditor/trunk/editor/_source/classes/fckdomrange_ie.js

    r1053 r1064  
    3434        if ( oSel.type != 'Control' )
    3535        {
     36                var htmlText = this.Window.document.selection.createRange().htmlText ;
    3637                var eMarkerStart        = this._GetSelectionMarkerTag( true ) ;
    3738                var eMarkerEnd          = this._GetSelectionMarkerTag( false ) ;
     
    5354
    5455                this._UpdateElementInfo() ;
     56
     57                // Kludge for IE bug #1491.
     58                if ( htmlText.match( /^\s*<(LI)><\/\1>$/ ) )
     59                        this.Collapse( true ) ;
    5560        }
    5661        else
Note: See TracChangeset for help on using the changeset viewer.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy