@easy-editor/core 0.0.3-alpha.1 → 0.0.3-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.development.js +2 -6
- package/dist/cjs/index.development.js.map +1 -1
- package/dist/cjs/index.js +2 -6
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/index.production.js +2 -6
- package/dist/cjs/index.production.js.map +1 -1
- package/dist/esm/index.development.js +2 -6
- package/dist/esm/index.development.js.map +1 -1
- package/dist/esm/index.js +2 -6
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.production.js +2 -6
- package/dist/esm/index.production.js.map +1 -1
- package/dist/index.js +2 -6
- package/package.json +1 -1
|
@@ -7140,9 +7140,7 @@ let Node$1 = class Node {
|
|
|
7140
7140
|
...extras
|
|
7141
7141
|
} = data;
|
|
7142
7142
|
this.props.import(props, extras);
|
|
7143
|
-
|
|
7144
|
-
this._children?.import(children, checkId);
|
|
7145
|
-
}
|
|
7143
|
+
this._children?.import(children, checkId);
|
|
7146
7144
|
}
|
|
7147
7145
|
export(stage = TRANSFORM_STAGE.SAVE) {
|
|
7148
7146
|
const baseSchema = {
|
|
@@ -7785,8 +7783,6 @@ class Document {
|
|
|
7785
7783
|
if (node.isRoot) return;
|
|
7786
7784
|
this.internalRemoveNode(node, true);
|
|
7787
7785
|
});
|
|
7788
|
-
this.remove();
|
|
7789
|
-
this.id = schema?.docId ?? uniqueId('doc');
|
|
7790
7786
|
if (schema) {
|
|
7791
7787
|
this.rootNode?.import(schema, checkId);
|
|
7792
7788
|
this._blank = false;
|
|
@@ -8573,6 +8569,7 @@ class Simulator {
|
|
|
8573
8569
|
}
|
|
8574
8570
|
this._renderer?.run();
|
|
8575
8571
|
this.setupEvents();
|
|
8572
|
+
clipboard.injectCopyPaster(this._contentDocument);
|
|
8576
8573
|
}
|
|
8577
8574
|
getComponent(componentName) {
|
|
8578
8575
|
return this._components[componentName];
|
|
@@ -8589,7 +8586,6 @@ class Simulator {
|
|
|
8589
8586
|
setupEvents() {
|
|
8590
8587
|
this.setupDragAndClick();
|
|
8591
8588
|
this.setupDetecting();
|
|
8592
|
-
clipboard.injectCopyPaster(this._contentDocument);
|
|
8593
8589
|
}
|
|
8594
8590
|
setupDragAndClick() {
|
|
8595
8591
|
const {
|