@ones-editor/editor 3.0.1-beta.4 → 3.0.1-beta.6
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 +11 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -29187,7 +29187,15 @@ var __publicField = (obj, key, value) => {
|
|
|
29187
29187
|
if (Math.abs(this.mouseDownEvent.x - event.x) < 3 && Math.abs(this.mouseDownEvent.y - event.y) < 3) {
|
|
29188
29188
|
return;
|
|
29189
29189
|
}
|
|
29190
|
-
const
|
|
29190
|
+
const rect = this.editor.rootContainer.getBoundingClientRect();
|
|
29191
|
+
let range;
|
|
29192
|
+
if (event.y > rect.bottom) {
|
|
29193
|
+
const lastBlock2 = getLastChildBlock(this.editor.rootContainer);
|
|
29194
|
+
const length = getBlockTextLength$6(this.editor, lastBlock2);
|
|
29195
|
+
range = createBlockSimpleRange(this.editor, lastBlock2, length, length);
|
|
29196
|
+
} else {
|
|
29197
|
+
range = getBlockRangeFromPoint(this.editor, event.x, event.y, true);
|
|
29198
|
+
}
|
|
29191
29199
|
if (!range) {
|
|
29192
29200
|
return;
|
|
29193
29201
|
}
|
|
@@ -95952,7 +95960,7 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
95952
95960
|
}
|
|
95953
95961
|
}
|
|
95954
95962
|
});
|
|
95955
|
-
editor.version = "3.0.1-beta.
|
|
95963
|
+
editor.version = "3.0.1-beta.6";
|
|
95956
95964
|
return editor;
|
|
95957
95965
|
}
|
|
95958
95966
|
function isDoc(doc2) {
|
|
@@ -96086,7 +96094,7 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
96086
96094
|
OnesEditorDropTarget.register(editor);
|
|
96087
96095
|
OnesEditorTocProvider.register(editor);
|
|
96088
96096
|
OnesEditorExclusiveBlock.register(editor);
|
|
96089
|
-
editor.version = "3.0.1-beta.
|
|
96097
|
+
editor.version = "3.0.1-beta.6";
|
|
96090
96098
|
return editor;
|
|
96091
96099
|
}
|
|
96092
96100
|
async function showDocVersions(editor, options, serverUrl) {
|