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