8
0
Prechádzať zdrojové kódy

Added element.appendChildren method.

Piotr Jasiun 10 rokov pred
rodič
commit
b4308c7cd1

+ 4 - 0
packages/ckeditor5-engine/src/treeview/element.js

@@ -106,6 +106,10 @@ export default class Element extends Node {
 		}
 	}
 
+	appendChildren( nodes ) {
+		this.insertChildren( this.getChildCount(), nodes );
+	}
+
 	removeChildren( index, number ) {
 		this.markToSync( 'CHILDREN_NEED_UPDATE' );