瀏覽代碼

Fixes after review.

Kuba Niegowski 5 年之前
父節點
當前提交
71d8192580

+ 6 - 5
packages/ckeditor5-block-quote/src/blockquoteediting.js

@@ -78,12 +78,13 @@ export default class BlockQuoteEditing extends Plugin {
 						const range = writer.createRangeIn( element );
 
 						for ( const child of range.getItems() ) {
-							if ( child.is( 'element', 'blockQuote' ) ) {
-								if ( !schema.checkChild( writer.createPositionBefore( child ), child ) ) {
-									writer.unwrap( child );
+							if (
+								child.is( 'element', 'blockQuote' ) &&
+								!schema.checkChild( writer.createPositionBefore( child ), child )
+							) {
+								writer.unwrap( child );
 
-									return true;
-								}
+								return true;
 							}
 						}
 					}

+ 0 - 1
packages/ckeditor5-engine/src/view/node.js

@@ -313,7 +313,6 @@ export default class Node {
 	 * By using this method it is also possible to check a name of an element:
 	 *
 	 *		imgElement.is( 'element', 'img' ); // -> true
-	 *		imgElement.is( 'element', 'img' ); // -> same as above
 	 *		imgElement.is( 'view:element', 'img' ); // -> same as above, but more precise
 	 *
 	 * The list of view objects which implement the `is()` method: