Make WordPress Core

Changeset 36605


Ignore:
Timestamp:
02/20/2016 10:13:17 PM (10 years ago)
Author:
ocean90
Message:

JSHint for [36602].

See #33301.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/tinymce/plugins/wplink/plugin.js

    r36602 r36605  
    7575
    7676                function getSelectedLink() {
    77                         var href, html
    78                                 node = editor.selection.getNode();
     77                        var href, html,
     78                                node = editor.selection.getNode(),
    7979                                link = editor.dom.getParent( node, 'a[href]' );
    8080
     
    9898                        return link;
    9999                }
    100                
     100
    101101                function removePlaceholders() {
    102102                        editor.$( 'a' ).each( function( i, element ) {
     
    110110                        });
    111111                }
    112                
     112
    113113                function removePlaceholderStrings( content, dataAttr ) {
    114114                        if ( dataAttr ) {
     
    237237                        }
    238238                } );
    239                
     239
    240240                // Remove any remaining placeholders on saving.
    241241                editor.on( 'savecontent', function( event ) {
    242242                        event.content = removePlaceholderStrings( event.content, true );
    243243                });
    244                
     244
    245245                // Prevent adding undo levels on inserting link placeholder.
    246246                editor.on( 'BeforeAddUndo', function( event ) {
Note: See TracChangeset for help on using the changeset viewer.