Ticket #8895: 8895.patch

File 8895.patch, 977 bytes (added by Wiktor Walc, 12 years ago)
  • _source/plugins/link/dialogs/link.js

     
    245245
    246246                // Find out whether we have any anchors in the editor.
    247247                var anchors = retval.anchors = [],
    248                         item;
     248                        i, count, item;
    249249
    250250                // For some browsers we set contenteditable="false" on anchors, making document.anchors not to include them, so we must traverse the links manually (#7893).
    251251                if ( CKEDITOR.plugins.link.emptyAnchorFix )
     
    261261                else
    262262                {
    263263                        var anchorList = new CKEDITOR.dom.nodeList( editor.document.$.anchors );
    264                         for ( var i = 0, count = anchorList.count(); i < count; i++ )
     264                        for ( i = 0, count = anchorList.count(); i < count; i++ )
    265265                        {
    266266                                item = anchorList.getItem( i );
    267267                                anchors[ i ] = { name : item.getAttribute( 'name' ), id : item.getAttribute( 'id' ) };
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy