mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-01-18 22:36:14 +08:00
Allow overriding getReferenceClientRect in floating menu
This commit is contained in:
parent
71c78ed53b
commit
285f89b5a9
@ -156,7 +156,7 @@ export class FloatingMenuView {
|
||||
}
|
||||
|
||||
this.tippy?.setProps({
|
||||
getReferenceClientRect: () => posToDOMRect(view, from, to),
|
||||
getReferenceClientRect: this.tippyOptions.getReferenceClientRect || () => posToDOMRect(view, from, to),
|
||||
})
|
||||
|
||||
this.show()
|
||||
|
Loading…
Reference in New Issue
Block a user