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

Internal: Change API usage after merge t/1263 in ckeditor5-engine.

Piotr Jasiun пре 8 година
родитељ
комит
5f909ceb81
1 измењених фајлова са 1 додато и 1 уклоњено
  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...
 	// 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;
 		return false;
 	}
 	}