JSHint for [36602].
See #33301. Built from https://develop.svn.wordpress.org/trunk@36605 git-svn-id: http://core.svn.wordpress.org/trunk@36572 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
826e2d8ea1
commit
141b4dbd91
|
@ -74,8 +74,8 @@
|
|||
var $ = window.jQuery;
|
||||
|
||||
function getSelectedLink() {
|
||||
var href, html
|
||||
node = editor.selection.getNode();
|
||||
var href, html,
|
||||
node = editor.selection.getNode(),
|
||||
link = editor.dom.getParent( node, 'a[href]' );
|
||||
|
||||
if ( ! link ) {
|
||||
|
@ -97,7 +97,7 @@
|
|||
|
||||
return link;
|
||||
}
|
||||
|
||||
|
||||
function removePlaceholders() {
|
||||
editor.$( 'a' ).each( function( i, element ) {
|
||||
var $element = editor.$( element );
|
||||
|
@ -109,7 +109,7 @@
|
|||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function removePlaceholderStrings( content, dataAttr ) {
|
||||
if ( dataAttr ) {
|
||||
content = content.replace( / data-wp-link-edit="true"/g, '' );
|
||||
|
@ -236,12 +236,12 @@
|
|||
}
|
||||
}
|
||||
} );
|
||||
|
||||
|
||||
// Remove any remaining placeholders on saving.
|
||||
editor.on( 'savecontent', function( event ) {
|
||||
event.content = removePlaceholderStrings( event.content, true );
|
||||
});
|
||||
|
||||
|
||||
// Prevent adding undo levels on inserting link placeholder.
|
||||
editor.on( 'BeforeAddUndo', function( event ) {
|
||||
if ( event.level.content ) {
|
||||
|
|
File diff suppressed because one or more lines are too long
Binary file not shown.
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.5-alpha-36604';
|
||||
$wp_version = '4.5-alpha-36605';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue