Browse Source

Aligned code with new SchemaContext API.

Oskar Wróbel 7 years ago
parent
commit
c16e04b59b
1 changed files with 1 additions and 3 deletions
  1. 1 3
      packages/ckeditor5-paragraph/src/paragraph.js

+ 1 - 3
packages/ckeditor5-paragraph/src/paragraph.js

@@ -211,9 +211,7 @@ function isParagraphable( node, position, schema ) {
 	}
 
 	// And a node would be allowed in this paragraph...
-	context.addItem( 'paragraph' );
-
-	if ( !schema.checkChild( context, node ) ) {
+	if ( !schema.checkChild( context.concat( 'paragraph' ), node ) ) {
 		return false;
 	}