Explorar o código

Added element.appendChildren method.

Piotr Jasiun %!s(int64=10) %!d(string=hai) anos
pai
achega
b4308c7cd1
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      packages/ckeditor5-engine/src/treeview/element.js

+ 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' );