pxx-vue-quill 1.0.84 → 1.0.85
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
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-08T04:02:29.450Z
|
|
11
11
|
*/
|
|
12
12
|
(function (global, factory) {
|
|
13
13
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue')) :
|
|
@@ -20174,12 +20174,10 @@
|
|
|
20174
20174
|
setup: (props, ctx) => {
|
|
20175
20175
|
vue.onMounted(() => {
|
|
20176
20176
|
initialize();
|
|
20177
|
-
console.log("onMounted handleGlobalClick");
|
|
20178
20177
|
document.addEventListener('click', handleGlobalClick);
|
|
20179
20178
|
document.addEventListener('keyup', handleGlobalKeyup, true);
|
|
20180
20179
|
});
|
|
20181
20180
|
const removeQuillBlotFormatter = () => {
|
|
20182
|
-
console.log("removeQuillBlotFormatter");
|
|
20183
20181
|
try {
|
|
20184
20182
|
const blotFormatter = quill === null || quill === void 0 ? void 0 : quill.getModule('blotFormatter');
|
|
20185
20183
|
if (blotFormatter && blotFormatter.overlay) {
|
|
@@ -20194,14 +20192,12 @@
|
|
|
20194
20192
|
}
|
|
20195
20193
|
};
|
|
20196
20194
|
const handleGlobalClick = (event) => {
|
|
20197
|
-
console.log("start handleGlobalClick", editor.value);
|
|
20198
20195
|
if (!editor.value)
|
|
20199
20196
|
return;
|
|
20200
20197
|
const blotFormatter = quill === null || quill === void 0 ? void 0 : quill.getModule('blotFormatter');
|
|
20201
20198
|
if (!blotFormatter || !blotFormatter.overlay)
|
|
20202
20199
|
return;
|
|
20203
20200
|
const isClickInsideEditor = editor.value.contains(event.target);
|
|
20204
|
-
console.log("isClickInsideEditor", isClickInsideEditor);
|
|
20205
20201
|
if (!isClickInsideEditor) {
|
|
20206
20202
|
removeQuillBlotFormatter();
|
|
20207
20203
|
}
|