Editor wpLink: swap the order of `innerText` and `textContent` to avoid getting styled text in IE.

Props dougwollison.
Fixes #36783.

git-svn-id: https://develop.svn.wordpress.org/trunk@37621 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2016-06-02 03:08:02 +00:00
parent 21fa6e2e9b
commit 5f4b2877f9
1 changed files with 1 additions and 1 deletions

View File

@ -228,7 +228,7 @@ var wpLink;
onlyText = this.hasSelectedText( linkNode );
if ( linkNode ) {
linkText = linkNode.innerText || linkNode.textContent;
linkText = linkNode.textContent || linkNode.innerText;
href = editor.dom.getAttrib( linkNode, 'href' );
if ( ! $.trim( linkText ) ) {