Răsfoiți Sursa

Aligned code with new SchemaContext API.

Oskar Wróbel 8 ani în urmă
părinte
comite
c16e04b59b
1 a modificat fișierele cu 1 adăugiri și 3 ștergeri
  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;
 	}