mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-06-07 09:25:29 +08:00
check if menuBubble is used
This commit is contained in:
parent
4a4b5ee829
commit
b47e6f0ee1
@ -161,8 +161,7 @@ export default {
|
||||
},
|
||||
|
||||
getPlugins() {
|
||||
return [
|
||||
menuBubble(this.menububbleNode),
|
||||
const plugins = [
|
||||
inputRules({
|
||||
rules: this.inputRules,
|
||||
}),
|
||||
@ -178,6 +177,12 @@ export default {
|
||||
},
|
||||
}),
|
||||
]
|
||||
|
||||
if (this.menububbleNode) {
|
||||
plugins.push(menuBubble(this.menububbleNode))
|
||||
}
|
||||
|
||||
return plugins
|
||||
},
|
||||
|
||||
createView() {
|
||||
|
Loading…
Reference in New Issue
Block a user