refactoring: rename posToClientRect to posToDOMRect

This commit is contained in:
Philipp Kühn
2021-04-16 14:44:10 +02:00
parent c4e0010656
commit 89b72b8608
4 changed files with 18 additions and 10 deletions

View File

@@ -1,4 +1,4 @@
import { Editor, isNodeEmpty, posToClientRect } from '@tiptap/core'
import { Editor, isNodeEmpty, posToDOMRect } from '@tiptap/core'
import { EditorState, Plugin, PluginKey } from 'prosemirror-state'
import { EditorView } from 'prosemirror-view'
import tippy, { Instance, Props } from 'tippy.js'
@@ -106,7 +106,7 @@ export class FloatingMenuView {
}
this.tippy.setProps({
getReferenceClientRect: () => posToClientRect(view, from, to),
getReferenceClientRect: () => posToDOMRect(view, from, to),
})
this.show()