@hostlink/nuxt-light 1.70.1 → 1.70.2
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/module.json
CHANGED
|
@@ -150,12 +150,23 @@ const updateSelectionState = (e) => {
|
|
|
150
150
|
const onEditorClick = (e) => {
|
|
151
151
|
updateSelectionState(e);
|
|
152
152
|
};
|
|
153
|
+
let dialogOpening = false;
|
|
153
154
|
const onEditorDblClick = (e) => {
|
|
155
|
+
e.stopPropagation();
|
|
156
|
+
if (dialogOpening) return;
|
|
154
157
|
updateSelectionState(e);
|
|
155
158
|
if (selectedImageNode.value) {
|
|
159
|
+
dialogOpening = true;
|
|
156
160
|
insertEditImageCMD();
|
|
161
|
+
setTimeout(() => {
|
|
162
|
+
dialogOpening = false;
|
|
163
|
+
}, 300);
|
|
157
164
|
} else if (selectedLinkNode.value) {
|
|
165
|
+
dialogOpening = true;
|
|
158
166
|
insertEditLinkCMD();
|
|
167
|
+
setTimeout(() => {
|
|
168
|
+
dialogOpening = false;
|
|
169
|
+
}, 300);
|
|
159
170
|
}
|
|
160
171
|
};
|
|
161
172
|
const openInsertEditImageDialog = (initialSource = "", skipSaveCaret = false) => {
|