Ticket #8982: 8982.patch

File 8982.patch, 740 bytes (added by Alfonso Martínez de Lizarrondo, 12 years ago)

Proposed patch

  • _source/plugins/link/dialogs/link.js

     
    278278                        }
    279279                }
    280280
     281                var doc = editor.document.$;
     282                if ( doc.querySelectorAll )
     283                {
     284                        var elements = doc.querySelectorAll('[id]');
     285                        for ( i = 0, count = elements.length; i < count; i++ )
     286                        {
     287                                item = elements[ i ];
     288                                if ( item.nodeName != 'A' )
     289                                        anchors.push( { name : item.getAttribute( 'name' ), id : item.getAttribute( 'id' ) } );
     290                        }
     291                }
     292
    281293                // Record down the selected element in the dialog.
    282294                this._.selectedElement = element;
    283295                return retval;
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy