@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
|
@@ -7142,9 +7142,7 @@ let Node$1 = class Node {
|
|
|
7142
7142
|
...extras
|
|
7143
7143
|
} = data;
|
|
7144
7144
|
this.props.import(props, extras);
|
|
7145
|
-
|
|
7146
|
-
this._children?.import(children, checkId);
|
|
7147
|
-
}
|
|
7145
|
+
this._children?.import(children, checkId);
|
|
7148
7146
|
}
|
|
7149
7147
|
export(stage = TRANSFORM_STAGE.SAVE) {
|
|
7150
7148
|
const baseSchema = {
|
|
@@ -7787,8 +7785,6 @@ class Document {
|
|
|
7787
7785
|
if (node.isRoot) return;
|
|
7788
7786
|
this.internalRemoveNode(node, true);
|
|
7789
7787
|
});
|
|
7790
|
-
this.remove();
|
|
7791
|
-
this.id = schema?.docId ?? uniqueId('doc');
|
|
7792
7788
|
if (schema) {
|
|
7793
7789
|
this.rootNode?.import(schema, checkId);
|
|
7794
7790
|
this._blank = false;
|
|
@@ -8575,6 +8571,7 @@ class Simulator {
|
|
|
8575
8571
|
}
|
|
8576
8572
|
this._renderer?.run();
|
|
8577
8573
|
this.setupEvents();
|
|
8574
|
+
clipboard.injectCopyPaster(this._contentDocument);
|
|
8578
8575
|
}
|
|
8579
8576
|
getComponent(componentName) {
|
|
8580
8577
|
return this._components[componentName];
|
|
@@ -8591,7 +8588,6 @@ class Simulator {
|
|
|
8591
8588
|
setupEvents() {
|
|
8592
8589
|
this.setupDragAndClick();
|
|
8593
8590
|
this.setupDetecting();
|
|
8594
|
-
clipboard.injectCopyPaster(this._contentDocument);
|
|
8595
8591
|
}
|
|
8596
8592
|
setupDragAndClick() {
|
|
8597
8593
|
const {
|