src/blockquoteediting.js
Function init
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
init() {
const editor = this.editor;
const schema = editor.model.schema;
editor.commands.add( 'blockQuote', new BlockQuoteCommand( editor ) );
Avoid deeply nested control flow statements. Open
Open
if ( child.is( 'blockQuote' ) && !schema.checkChild( writer.createPositionBefore( child ), child ) ) {
writer.unwrap( child );
return true;
}
Avoid too many return
statements within this function. Open
Open
return false;