WordPress.org

Make WordPress Core

Changeset 40801


Ignore:
Timestamp:
05/19/17 18:54:42 (6 months ago)
Author:
azaozz
Message:

TinyMCE: fix selecting the link node after creating a link by pasting an URL.

Props iseulde.
Fixes #40818.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/tinymce/plugins/wplink/plugin.js

    r40644 r40801  
    102102        function getSelectedLink() { 
    103103            var href, html, 
    104                 node = editor.selection.getNode(), 
     104                node = editor.selection.getStart(), 
    105105                link = editor.dom.getParent( node, 'a[href]' ); 
    106106 
Note: See TracChangeset for help on using the changeset viewer.