Web.Admin/2014/wordpress/wp-includes/js/tinymce/plugins/wpview/plugin.js
File plugin.js
has 337 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/* global tinymce */
/**
* WordPress View plugin.
*/
tinymce.PluginManager.add( 'wpview', function( editor ) {
Avoid deeply nested control flow statements. Open
Open
if ( container.nextSibling ) {
return;
}
Consider simplifying this complex logical expression. Open
Open
if ( ! range.collapsed || ( range.startOffset === 0 && container.length ) ||
container.nextSibling ||
( container.nodeType === 3 && range.startOffset !== container.length ) ) { // Not at the end of the current range
return;
Avoid too many return
statements within this function. Open
Open
return;
Avoid too many return
statements within this function. Open
Open
return;