@ones-editor/editor 2.1.1-beta.51 → 2.1.1-beta.52
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/index.js
CHANGED
|
@@ -80081,7 +80081,12 @@ ${content}
|
|
|
80081
80081
|
return;
|
|
80082
80082
|
}
|
|
80083
80083
|
if (this.editor.selection.range.isCollapsed()) {
|
|
80084
|
-
|
|
80084
|
+
const rangeRect = getBlockClientRects(this.editor, block, this.editor.selection.range);
|
|
80085
|
+
const clientX = event.touches[0].clientX;
|
|
80086
|
+
const clientY = event.touches[0].clientY;
|
|
80087
|
+
const step = 10;
|
|
80088
|
+
const inRect = rangeRect.some((rect) => clientX > rect.left - step && clientX < rect.right + step && clientY > rect.top - step && clientY < rect.bottom + step);
|
|
80089
|
+
if (inRect) {
|
|
80085
80090
|
this.cursorToolbar.showToolbar();
|
|
80086
80091
|
event.preventDefault();
|
|
80087
80092
|
event.stopPropagation();
|
|
@@ -86513,7 +86518,7 @@ ${data2.flowchartText}
|
|
|
86513
86518
|
}
|
|
86514
86519
|
}
|
|
86515
86520
|
});
|
|
86516
|
-
editor.version = "2.1.1-beta.
|
|
86521
|
+
editor.version = "2.1.1-beta.52";
|
|
86517
86522
|
if (Logger$2.level === LogLevel.DEBUG) {
|
|
86518
86523
|
window.setReauthFail = (fail) => {
|
|
86519
86524
|
window.isReauthError = fail;
|
|
@@ -86611,7 +86616,7 @@ ${data2.flowchartText}
|
|
|
86611
86616
|
});
|
|
86612
86617
|
editor.addCustom(DOC_RE_AUTH_KEYS, (editor2) => new DocReAuthCallbacks(editor2));
|
|
86613
86618
|
OnesEditorToolbar.register(editor);
|
|
86614
|
-
editor.version = "2.1.1-beta.
|
|
86619
|
+
editor.version = "2.1.1-beta.52";
|
|
86615
86620
|
return editor;
|
|
86616
86621
|
}
|
|
86617
86622
|
async function showDocVersions(editor, options, serverUrl) {
|