8
0
فهرست منبع

Clearing RootElement before filling it with new child nodes.

Szymon Kupś 9 سال پیش
والد
کامیت
90fd8aab5c
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      packages/ckeditor5-engine/tests/_utils/model.js

+ 1 - 0
packages/ckeditor5-engine/tests/_utils/model.js

@@ -127,6 +127,7 @@ export function parse( data, options = {} ) {
 	if ( options.document ) {
 		document = options.document;
 		root = document.getRoot( rootName );
+		root.removeChildren( 0, root.getChildCount() );
 	} else {
 		document = new Document();
 		root = document.createRoot( rootName );