Changeset 6182


Ignore:
Timestamp:
12/07/10 13:44:22 (4 years ago)
Author:
garry.yao
Message:

#6779: Select body contents instead of selecting body node.

Location:
CKEditor/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CKEditor/trunk/CHANGES.html

    r6181 r6182  
    6868                <li><a href="http://dev.ckeditor.com/ticket/6150">#6150</a> : [Safari] Color dialog was broken.</li> 
    6969                <li><a href="http://dev.ckeditor.com/ticket/6747">#6747</a> : Full screen layout issue caused by page element focus outside editor.</li> 
     70                <li><a href="http://dev.ckeditor.com/ticket/6779">#6779</a> : Click on "body" on elements blink the selection off.</li> 
    7071                <li>Updated the following language files:<ul> 
    7172                        <li><a href="http://dev.ckeditor.com/ticket/6756">#6756</a> : Hungarian;</li> 
  • CKEditor/trunk/_source/plugins/elementspath/plugin.js

    r5681 r6182  
    156156 
    157157                var element = editor._.elementsPath.list[ elementIndex ]; 
    158                 editor.getSelection().selectElement( element ); 
     158 
     159                if ( element.is( 'body' ) ) 
     160                { 
     161                        var range = new CKEDITOR.dom.range( editor.document ); 
     162                        range.selectNodeContents( element ); 
     163                        range.select(); 
     164                } 
     165                else 
     166                        editor.getSelection().selectElement( element ); 
    159167 
    160168                return false; 
Note: See TracChangeset for help on using the changeset viewer.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy