LinkPreview onHover #3372
-
Hey, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I found a working solution, at least for me.
I Hope this will help someone |
Beta Was this translation helpful? Give feedback.
I found a working solution, at least for me.
On my root component under my LexicalComposer I added onMouseOver and onMouseLeave to detect hover events. I than checked if the hovered element or one of its parents have the nodeName "A" (=> it must be a link). If its the case I save the element and use it in combination with a mui popper as anchor element. The mui popper is like any other plugin part of my lexical composer.