Ticket #3181: 3181.patch

File 3181.patch, 1.3 KB (added by Alfonso Martínez de Lizarrondo, 12 years ago)

Proposed patch

  • _whatsnew.html

     
    4444        <ul>
    4545                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2821">#2821</a>] Configuration
    4646                        items that used floating point numbers were parsed as integers.</li>
     47                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/3181">#3181</a>] Node selection
     48                        could raise an error in IE8.</li>
    4749                <li>Language file updates for the following languages:
    4850                        <ul>
    4951                                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2849">#2849</a>] Lithuanian</li>
  • editor/_source/internals/fckselection_ie.js

     
    108108                // Try to select the node as a control.
    109109                oRange = FCK.EditorDocument.body.createControlRange() ;
    110110                oRange.addElement( node ) ;
     111                oRange.select() ;
    111112        }
    112113        catch(e)
    113114        {
    114115                // If failed, select it as a text range.
    115116                oRange = FCK.EditorDocument.body.createTextRange() ;
    116117                oRange.moveToElementText( node ) ;
     118                oRange.select() ;
    117119        }
    118120
    119         oRange.select() ;
    120121} ;
    121122
    122123FCKSelection.Collapse = function( toStart )
© 2003 – 2021 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy