@ones-editor/editor 2.8.10 → 2.8.12
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 +13 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5439,6 +5439,7 @@ div.editor-root div.editor-content div[data-type=editor-container] div.embed-blo
|
|
|
5439
5439
|
div.editor-root div.editor-content div[data-type=editor-container] div.embed-block[data-type=editor-block][data-embed-type=office] [data-type=block-content] .card-root .file-details .file-name-pre {
|
|
5440
5440
|
display: -webkit-box;
|
|
5441
5441
|
overflow: hidden;
|
|
5442
|
+
word-break: break-all;
|
|
5442
5443
|
-webkit-line-clamp: 1;
|
|
5443
5444
|
-webkit-box-orient: vertical;
|
|
5444
5445
|
}
|
|
@@ -68138,7 +68139,7 @@ ${codeText}
|
|
|
68138
68139
|
if ((dragObject == null ? void 0 : dragObject.type) === "block") {
|
|
68139
68140
|
return void 0;
|
|
68140
68141
|
}
|
|
68141
|
-
if (images.length >= 6
|
|
68142
|
+
if (images.length >= 6) {
|
|
68142
68143
|
if ((dragObject == null ? void 0 : dragObject.blockId) !== getBlockId(block)) {
|
|
68143
68144
|
return void 0;
|
|
68144
68145
|
}
|
|
@@ -87101,6 +87102,15 @@ ${data2.plantumlText}
|
|
|
87101
87102
|
if (getContainerId(editor.getParentContainer(target)) !== "root") {
|
|
87102
87103
|
return void 0;
|
|
87103
87104
|
}
|
|
87105
|
+
const sourceType = getBlockType(source);
|
|
87106
|
+
const targetType = getBlockType(target);
|
|
87107
|
+
if (sourceType === targetType && sourceType === "embed") {
|
|
87108
|
+
const sourceEmbed = getEmbedType(source);
|
|
87109
|
+
const targetEmbed = getEmbedType(target);
|
|
87110
|
+
if (sourceEmbed === targetEmbed && sourceEmbed === "image") {
|
|
87111
|
+
return void 0;
|
|
87112
|
+
}
|
|
87113
|
+
}
|
|
87104
87114
|
if (getBlockType(source) === LAYOUT_BLOCK_TYPE || getBlockType(target) === LAYOUT_BLOCK_TYPE) {
|
|
87105
87115
|
return void 0;
|
|
87106
87116
|
}
|
|
@@ -92594,7 +92604,7 @@ ${data2.plantumlText}
|
|
|
92594
92604
|
}
|
|
92595
92605
|
}
|
|
92596
92606
|
});
|
|
92597
|
-
editor.version = "2.8.
|
|
92607
|
+
editor.version = "2.8.12";
|
|
92598
92608
|
return editor;
|
|
92599
92609
|
}
|
|
92600
92610
|
function isDoc(doc2) {
|
|
@@ -92707,7 +92717,7 @@ ${data2.plantumlText}
|
|
|
92707
92717
|
}
|
|
92708
92718
|
});
|
|
92709
92719
|
OnesEditorToolbar.register(editor);
|
|
92710
|
-
editor.version = "2.8.
|
|
92720
|
+
editor.version = "2.8.12";
|
|
92711
92721
|
return editor;
|
|
92712
92722
|
}
|
|
92713
92723
|
async function showDocVersions(editor, options, serverUrl) {
|