ckeditor/plugins/floating-tools/plugin.js
Function init
has 308 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
init: function( editor ) {
/**
* Create the UI elements required by this plugin
File plugin.js
has 324 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* Floating-Tools
* Author: Philipp Stracker (2013)
* Project page: http://stracker-phil.github.com/Floating-Tools/
*/
Avoid deeply nested control flow statements. Open
Open
if ( !groupStarted ) {
output.push( '<span class="cke_toolgroup" role="presentation">' );
groupStarted = 1;
}
Avoid deeply nested control flow statements. Open
Open
if ( index > 0 ) {
toolbarObj.previous = toolbars[ index - 1 ];
toolbarObj.previous.next = toolbarObj;
}
Avoid deeply nested control flow statements. Open
Open
} else if ( groupStarted ) {
output.push( '</span>' );
groupStarted = 0;
}