[wp-trac] [WordPress Trac] #26027: jshint shouldn't throw errors:wp-includes/js/tinymce/plugins/wpview/editor_plugin_src.js

WordPress Trac noreply at wordpress.org
Thu Nov 14 21:00:35 UTC 2013


#26027: jshint shouldn't throw errors:wp-
includes/js/tinymce/plugins/wpview/editor_plugin_src.js
--------------------------+-----------------------------
 Reporter:  seanchayes    |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Build Tools   |    Version:
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 Resolving JSHint reported issues:

 {{{
 Linting src/wp-includes/js/tinymce/plugins/wpview/editor_plugin_src.js
 ...ERROR
 [L6:C14] W117: 'tinymce' is not defined.
   var VK = tinymce.VK,
 Linting src/wp-includes/js/tinymce/plugins/wpview/editor_plugin_src.js
 ...ERROR
 [L7:C22] W117: 'tinymce' is not defined.
     TreeWalker = tinymce.dom.TreeWalker,
 Linting src/wp-includes/js/tinymce/plugins/wpview/editor_plugin_src.js
 ...ERROR
 [L10:C5] W117: 'tinymce' is not defined.
   tinymce.create('tinymce.plugins.wpView', {
 Linting src/wp-includes/js/tinymce/plugins/wpview/editor_plugin_src.js
 ...ERROR
 [L187:C5] W117: 'tinymce' is not defined.
   tinymce.PluginManager.add( 'wpview', tinymce.plugins.wpView );
 Linting src/wp-includes/js/tinymce/plugins/wpview/editor_plugin_src.js
 ...ERROR
 [L187:C42] W117: 'tinymce' is not defined.
   tinymce.PluginManager.add( 'wpview', tinymce.plugins.wpView );
 Linting src/wp-includes/js/tinymce/plugins/wpview/editor_plugin_src.js
 ...ERROR
 [L11:C37] W098: 'url' is defined but never used.
     init : function( editor, url ) {
 Linting src/wp-includes/js/tinymce/plugins/wpview/editor_plugin_src.js
 ...ERROR
 [L36:C57] W098: 'o' is defined but never used.
       editor.onSetContent.add( function( editor, o ) {
 Linting src/wp-includes/js/tinymce/plugins/wpview/editor_plugin_src.js
 ...ERROR
 [L44:C80] W098: 'o' is defined but never used.
         editor.selection.onBeforeSetContent.add( function( selection, o )
 {
 Linting src/wp-includes/js/tinymce/plugins/wpview/editor_plugin_src.js
 ...ERROR
 [L98:C95] W098: 'o' is defined but never used.
       editor.onNodeChange.addToTop( function( editor, controlManager,
 node, collapsed, o ) {
 Linting src/wp-includes/js/tinymce/plugins/wpview/editor_plugin_src.js
 ...ERROR
 [L98:C92] W098: 'collapsed' is defined but never used.
       editor.onNodeChange.addToTop( function( editor, controlManager,
 node, collapsed, o ) {
 }}}

--
Ticket URL: <http://core.trac.wordpress.org/ticket/26027>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list