Browse Source

Internal: Used SchemaContext#push instead of dropped SchemaContext#concat.

Oskar Wróbel 8 năm trước cách đây
mục cha
commit
a786f99696
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      packages/ckeditor5-paragraph/src/paragraph.js

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

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