diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/components/Menu/ActionList.vue | 8 |
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) + } }, }, } |