mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-09 07:00:01 +00:00
Editor wpLink: swap the order of innerText
and textContent
to avoid getting styled text in IE.
Props dougwollison. Fixes #36783. Built from https://develop.svn.wordpress.org/trunk@37621 git-svn-id: http://core.svn.wordpress.org/trunk@37589 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
fc1db9b413
commit
c59504f760
@ -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 ) ) {
|
||||
|
2
wp-includes/js/wplink.min.js
vendored
2
wp-includes/js/wplink.min.js
vendored
File diff suppressed because one or more lines are too long
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.6-alpha-37620';
|
||||
$wp_version = '4.6-alpha-37621';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
x
Reference in New Issue
Block a user