TinyMCE: fix selecting the link node after creating a link by pasting an URL.
Props iseulde. Fixes #40818. Built from https://develop.svn.wordpress.org/trunk@40801 git-svn-id: http://core.svn.wordpress.org/trunk@40659 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -101,7 +101,7 @@
|
||||
|
||||
function getSelectedLink() {
|
||||
var href, html,
|
||||
node = editor.selection.getNode(),
|
||||
node = editor.selection.getStart(),
|
||||
link = editor.dom.getParent( node, 'a[href]' );
|
||||
|
||||
if ( ! link ) {
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user