@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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "light",
3
3
  "configKey": "light",
4
- "version": "1.70.1",
4
+ "version": "1.70.2",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -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) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hostlink/nuxt-light",
3
- "version": "1.70.1",
3
+ "version": "1.70.2",
4
4
  "description": "HostLink Nuxt Light Framework",
5
5
  "repository": {
6
6
  "type": "git",