@ones-editor/editor 2.2.25 → 2.2.26
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/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/dist/index.js +12 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -66443,7 +66443,7 @@ ${codeText}
|
|
|
66443
66443
|
if ((dragObject == null ? void 0 : dragObject.type) === "block") {
|
|
66444
66444
|
return void 0;
|
|
66445
66445
|
}
|
|
66446
|
-
if (images.length >= 6
|
|
66446
|
+
if (images.length >= 6) {
|
|
66447
66447
|
if ((dragObject == null ? void 0 : dragObject.blockId) !== getBlockId(block)) {
|
|
66448
66448
|
return void 0;
|
|
66449
66449
|
}
|
|
@@ -83532,6 +83532,15 @@ ${content}
|
|
|
83532
83532
|
if (getContainerId(editor.getParentContainer(target)) !== "root") {
|
|
83533
83533
|
return void 0;
|
|
83534
83534
|
}
|
|
83535
|
+
const sourceType = getBlockType(source);
|
|
83536
|
+
const targetType = getBlockType(target);
|
|
83537
|
+
if (sourceType === targetType && sourceType === "embed") {
|
|
83538
|
+
const sourceEmbed = getEmbedType(source);
|
|
83539
|
+
const targetEmbed = getEmbedType(target);
|
|
83540
|
+
if (sourceEmbed === targetEmbed && sourceEmbed === "image") {
|
|
83541
|
+
return void 0;
|
|
83542
|
+
}
|
|
83543
|
+
}
|
|
83535
83544
|
if (getBlockType(source) === LAYOUT_BLOCK_TYPE || getBlockType(target) === LAYOUT_BLOCK_TYPE) {
|
|
83536
83545
|
return void 0;
|
|
83537
83546
|
}
|
|
@@ -88643,7 +88652,7 @@ ${data2.flowchartText}
|
|
|
88643
88652
|
}
|
|
88644
88653
|
}
|
|
88645
88654
|
});
|
|
88646
|
-
editor.version = "2.2.
|
|
88655
|
+
editor.version = "2.2.26";
|
|
88647
88656
|
return editor;
|
|
88648
88657
|
}
|
|
88649
88658
|
function isDoc(doc2) {
|
|
@@ -88738,7 +88747,7 @@ ${data2.flowchartText}
|
|
|
88738
88747
|
});
|
|
88739
88748
|
editor.addCustom(DOC_RE_AUTH_KEYS, (editor2) => new DocReAuthCallbacks(editor2));
|
|
88740
88749
|
OnesEditorToolbar.register(editor);
|
|
88741
|
-
editor.version = "2.2.
|
|
88750
|
+
editor.version = "2.2.26";
|
|
88742
88751
|
return editor;
|
|
88743
88752
|
}
|
|
88744
88753
|
async function showDocVersions(editor, options, serverUrl) {
|