Changeset 6960 for CKEditor/trunk


Ignore:
Timestamp:
05/24/2011 03:54:36 PM (4 years ago)
Author:
Saare
Message:

#7893: [Webkit, Opera] It was impossible to link to anchors in the document.

Location:
CKEditor/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CKEditor/trunk/CHANGES.html

    r6958 r6960  
    7575                <li><a href="http://dev.ckeditor.com/ticket/7192">#7192</a> : [IE] Selecting paragrpah format in an empty editor without focus didn't bring focus into editor body.</li> 
    7676                <li><a href="http://dev.ckeditor.com/ticket/7158">#7158</a> : Width and height fields in the iframe dialog are now synchronized with the style field.</li> 
     77                <li><a href="http://dev.ckeditor.com/ticket/7893">#7893</a> : [Webkit, Opera] It was impossible to link to anchors in the document.</li> 
    7778                <li>Updated the following language files:<ul> 
    7879                        <li><a href="http://dev.ckeditor.com/ticket/7834">#7834</a> : Dutch;</li> 
  • CKEditor/trunk/_source/plugins/link/dialogs/link.js

    r6923 r6960  
    253253                        item = anchorList.getItem( i ); 
    254254                        anchors[ i ] = { name : item.getAttribute( 'name' ), id : item.getAttribute( 'id' ) }; 
     255                } 
     256 
     257                if ( CKEDITOR.plugins.link.fakeAnchor ) 
     258                { 
     259                        var imgs = editor.document.getElementsByTag( 'img' ), anchor; 
     260                        for ( i = 0, count = imgs.count(); i < count; i++ ) 
     261                        { 
     262                                if ( ( anchor = CKEDITOR.plugins.link.tryRestoreFakeAnchor( editor, imgs.getItem( i ) ) ) ) 
     263                                        anchors.push( { name : anchor.getAttribute( 'name' ), id : anchor.getAttribute( 'id' ) } ); 
     264                        } 
    255265                } 
    256266 
Note: See TracChangeset for help on using the changeset viewer.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy