WordPress.org

Make WordPress Core

Changeset 26201


Ignore:
Timestamp:
11/15/2013 05:17:13 AM (6 years ago)
Author:
nacin
Message:

Fix JSHint errors in the wpview and wplink editor plugins.

props seanchayes.
fixes #26024, #26027.

Location:
trunk/src/wp-includes/js/tinymce/plugins
Files:
2 edited

Legend:

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

    r23191 r26201  
     1/* global tinymce */
     2
    13(function() {
    24    tinymce.create('tinymce.plugins.wpLink', {
     
    1921                    id : 'wp-link',
    2022                    width : 480,
    21                     height : "auto",
     23                    height : 'auto',
    2224                    wpDialog : true,
    2325                    title : ed.getLang('advlink.link_desc')
     
    4951                authorurl : 'http://wordpress.org',
    5052                infourl : '',
    51                 version : "1.0"
     53                version : '1.0'
    5254            };
    5355        }
  • trunk/src/wp-includes/js/tinymce/plugins/wpview/editor_plugin_src.js

    r22798 r26201  
     1/* global tinymce */
    12/**
    23 * WordPress View plugin.
     
    910
    1011    tinymce.create('tinymce.plugins.wpView', {
    11         init : function( editor, url ) {
     12        init : function( editor ) {
    1213            var wpView = this;
    1314
     
    3435            // When the editor's content has been updated and the DOM has been
    3536            // processed, render the views in the document.
    36             editor.onSetContent.add( function( editor, o ) {
     37            editor.onSetContent.add( function( editor ) {
    3738                wp.mce.view.render( editor.getDoc() );
    3839            });
     
    4243                // When a view is selected, ensure content that is being pasted
    4344                // or inserted is added to a text node (instead of the view).
    44                 editor.selection.onBeforeSetContent.add( function( selection, o ) {
     45                editor.selection.onBeforeSetContent.add( function( selection ) {
    4546                    var view = wpView.getParentView( selection.getNode() ),
    4647                        walker, target;
     
    9697            // Triggers when the selection is changed.
    9798            // Add the event handler to the top of the stack.
    98             editor.onNodeChange.addToTop( function( editor, controlManager, node, collapsed, o ) {
     99            editor.onNodeChange.addToTop( function( editor, controlManager, node ) {
    99100                var view = wpView.getParentView( node );
    100101
Note: See TracChangeset for help on using the changeset viewer.