Преглед изворни кода

Aligned code with new SchemaContext API.

Oskar Wróbel пре 8 година
родитељ
комит
c16e04b59b
1 измењених фајлова са 1 додато и 3 уклоњено
  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;
 	}