TinyMCE: fix selecting the link node after creating a link by pasting an URL.
Props iseulde. Fixes #40818. git-svn-id: https://develop.svn.wordpress.org/trunk@40801 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
11acb32acf
commit
33b0757fcf
@ -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 ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user