pxx-vue-quill 1.0.149 → 1.0.151
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/vue-quill.umd.js +9 -12
- package/dist/vue-quill.umd.prod.js +2 -2
- package/package.json +1 -1
package/dist/vue-quill.umd.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* Copyright (c) 2025 Pxx-Team
|
|
9
9
|
* Released under the MIT license
|
|
10
|
-
* Date: 2025-09-
|
|
10
|
+
* Date: 2025-09-11T06:14:09.331Z
|
|
11
11
|
*/
|
|
12
12
|
(function (global, factory) {
|
|
13
13
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue')) :
|
|
@@ -20977,8 +20977,15 @@
|
|
|
20977
20977
|
const customLinkWidth = 310;
|
|
20978
20978
|
const maxLeft = editorWidth - customLinkWidth - 16;
|
|
20979
20979
|
const left = Math.min(bounds.left, Math.max(0, maxLeft));
|
|
20980
|
+
const editorRect = editorElement === null || editorElement === void 0 ? void 0 : editorElement.getBoundingClientRect();
|
|
20981
|
+
const containerRect = editorContainer === null || editorContainer === void 0 ? void 0 : editorContainer.getBoundingClientRect();
|
|
20982
|
+
if (!editorRect || !containerRect) {
|
|
20983
|
+
return { top: bounds.top + bounds.height + 5, left: left };
|
|
20984
|
+
}
|
|
20985
|
+
const editorOffsetTop = editorRect.top - containerRect.top;
|
|
20986
|
+
const top = editorOffsetTop + bounds.top + bounds.height + 5;
|
|
20980
20987
|
return {
|
|
20981
|
-
top:
|
|
20988
|
+
top: top,
|
|
20982
20989
|
left: left
|
|
20983
20990
|
};
|
|
20984
20991
|
}
|
|
@@ -21039,16 +21046,6 @@
|
|
|
21039
21046
|
quill.formatText(linkIndex, linkLength, 'link', false);
|
|
21040
21047
|
}
|
|
21041
21048
|
}
|
|
21042
|
-
if (data.text && data.text.trim()) {
|
|
21043
|
-
if (currentRange && currentRange.length > 0) {
|
|
21044
|
-
quill.deleteText(currentRange.index, currentRange.length);
|
|
21045
|
-
quill.insertText(currentRange.index, data.text);
|
|
21046
|
-
}
|
|
21047
|
-
else if (currentRange) {
|
|
21048
|
-
quill.insertText(currentRange.index, data.text);
|
|
21049
|
-
quill.setSelection(currentRange.index + data.text.length, 0);
|
|
21050
|
-
}
|
|
21051
|
-
}
|
|
21052
21049
|
}
|
|
21053
21050
|
else {
|
|
21054
21051
|
if (range.length > 0) {
|