mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-06-18 16:40:45 +08:00
fix(link): change type HTMLLinkElement to HTMLAnchorElement (#5858)
This commit is contained in:
parent
c5d87d6765
commit
ccd014728a
@ -32,7 +32,7 @@ export function clickHandler(options: ClickHandlerOptions): Plugin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const attrs = getAttributes(view.state, options.type.name)
|
const attrs = getAttributes(view.state, options.type.name)
|
||||||
const link = (event.target as HTMLLinkElement)
|
const link = (event.target as HTMLAnchorElement)
|
||||||
|
|
||||||
const href = link?.href ?? attrs.href
|
const href = link?.href ?? attrs.href
|
||||||
const target = link?.target ?? attrs.target
|
const target = link?.target ?? attrs.target
|
||||||
|
Loading…
Reference in New Issue
Block a user