Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/components/Menu/ActionList.vue8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/components/Menu/ActionList.vue b/src/components/Menu/ActionList.vue
index 6650faebf..d992b0b25 100644
--- a/src/components/Menu/ActionList.vue
+++ b/src/components/Menu/ActionList.vue
@@ -83,8 +83,12 @@ export default {
// nothing todo
},
onTrigger(entry) {
- this.$editor.chain().focus().run()
- this.$emit('trigged', entry)
+ if (entry?.click) {
+ entry.click(this)
+ } else {
+ this.$editor.chain().focus().run()
+ this.$emit('trigged', entry)
+ }
},
},
}