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:
parent
21fa6e2e9b
commit
5f4b2877f9
|
@ -228,7 +228,7 @@ var wpLink;
|
||||||
onlyText = this.hasSelectedText( linkNode );
|
onlyText = this.hasSelectedText( linkNode );
|
||||||
|
|
||||||
if ( linkNode ) {
|
if ( linkNode ) {
|
||||||
linkText = linkNode.innerText || linkNode.textContent;
|
linkText = linkNode.textContent || linkNode.innerText;
|
||||||
href = editor.dom.getAttrib( linkNode, 'href' );
|
href = editor.dom.getAttrib( linkNode, 'href' );
|
||||||
|
|
||||||
if ( ! $.trim( linkText ) ) {
|
if ( ! $.trim( linkText ) ) {
|
||||||
|
|
Loading…
Reference in New Issue