From 0659293ee25666238d6e9acac148a5a699baca7a Mon Sep 17 00:00:00 2001 From: "Dominik Schilling (ocean90)" Date: Sat, 20 Feb 2016 22:13:17 +0000 Subject: [PATCH] JSHint for [36602]. See #33301. git-svn-id: https://develop.svn.wordpress.org/trunk@36605 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/js/tinymce/plugins/wplink/plugin.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/wp-includes/js/tinymce/plugins/wplink/plugin.js b/src/wp-includes/js/tinymce/plugins/wplink/plugin.js index 4ffd5dc109..302bf60f69 100644 --- a/src/wp-includes/js/tinymce/plugins/wplink/plugin.js +++ b/src/wp-includes/js/tinymce/plugins/wplink/plugin.js @@ -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 ) {