|
|
@@ -71,6 +71,8 @@ export default class UIElement extends Element {
|
|
|
* Overrides {@link module:engine/view/element~Element#_insertChild} method.
|
|
|
* Throws {@link module:utils/ckeditorerror~CKEditorError CKEditorError} `view-uielement-cannot-add` to prevent adding any child nodes
|
|
|
* to UIElement.
|
|
|
+ *
|
|
|
+ * @protected
|
|
|
*/
|
|
|
_insertChild( index, nodes ) {
|
|
|
if ( nodes && ( nodes instanceof Node || Array.from( nodes ).length > 0 ) ) {
|