diff --git a/frontend/src/components/input/editor/setLinkInEditor.ts b/frontend/src/components/input/editor/setLinkInEditor.ts index 937d46804..f5f547ff4 100644 --- a/frontend/src/components/input/editor/setLinkInEditor.ts +++ b/frontend/src/components/input/editor/setLinkInEditor.ts @@ -1,6 +1,7 @@ +import type {Editor} from '@tiptap/core' import inputPrompt from '@/helpers/inputPrompt' -export async function setLinkInEditor(pos, editor) { +export async function setLinkInEditor(pos: DOMRect, editor: Editor | null | undefined) { const previousUrl = editor?.getAttributes('link').href || '' const url = await inputPrompt(pos, previousUrl)