Internal: Added version checking to `model/position`, `model/node`, `view/position`, `view/node` modules. Closes https://github.com/ckeditor/ckeditor5/issues/1660.
@@ -11,6 +11,9 @@ import toMap from '@ckeditor/ckeditor5-utils/src/tomap';
import CKEditorError from '@ckeditor/ckeditor5-utils/src/ckeditorerror';
import compareArrays from '@ckeditor/ckeditor5-utils/src/comparearrays';
+// To check if component is loaded more than once.
+import '@ckeditor/ckeditor5-utils/src/version';
+
/**
* Model node. Most basic structure of model tree.
*
@@ -13,6 +13,9 @@ import CKEditorError from '@ckeditor/ckeditor5-utils/src/ckeditorerror';
import Text from './text';
import { last } from 'lodash-es';
* Represents a position in the model tree.
@@ -13,6 +13,9 @@ import mix from '@ckeditor/ckeditor5-utils/src/mix';
import { clone } from 'lodash-es';
* Abstract tree view node class.
@@ -13,6 +13,9 @@ import compareArrays from '@ckeditor/ckeditor5-utils/src/comparearrays';
import EditableElement from './editableelement';
* Position in the view tree. Position is represented by its parent node and an offset in this parent.