Ticket #7893: 7893.patch

File 7893.patch, 858 bytes (added by Sa'ar Zac Elias, 13 years ago)
  • _source/plugins/link/dialogs/link.js

     
    254254                        anchors[ i ] = { name : item.getAttribute( 'name' ), id : item.getAttribute( 'id' ) };
    255255                }
    256256
     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                        }
     265                }
     266
    257267                // Record down the selected element in the dialog.
    258268                this._.selectedElement = element;
    259269                return retval;
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy