Ticket #1806: 1806.patch

File 1806.patch, 1.3 KB (added by Frederico Caldeira Knabben, 12 years ago)
  • _whatsnew.html

     
    108108                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1832">#1832</a>] Calling
    109109                        FCK.InsertHtml() in non-IE browsers would now activate the document processor
    110110                        as expected.</li>
     111                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1806">#1806</a>] In IE,
     112                        the carret will not anymore move to the previous line when selecting a Format style
     113                        inside an empty paragraph.</li>
    111114        </ul>
    112115        <h3>
    113116                Version 2.6 Beta 1</h3>
  • editor/_source/classes/fckeditingarea.js

     
    342342                return ;
    343343        }
    344344
    345         range.moveEnd( "character", 1 ) ;
    346         range.select() ;
    347 
    348         if ( range.boundingWidth > 0 )
    349         {
    350                 range.moveEnd( "character", -1 ) ;
    351                 range.select() ;
    352         }
     345        // Force the selection to happen, in this way we guarantee the focus will
     346        // be there.
     347        range = new FCKDomRange( this.Window ) ;
     348        range.MoveToElementEditStart( parentNode ) ;
     349        range.Select() ;
    353350}
    354351
    355352function FCKEditingArea_Cleanup()
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy