# How to add custom event handler to a node, more spcifically, mouse hover over a link?

**URL:** <https://discuss.prosemirror.net/t/how-to-add-custom-event-handler-to-a-node-more-spcifically-mouse-hover-over-a-link/1527>\
**Category:** Uncategorized\
**Created:** [September 22, 2018, 2:15am UTC](https://discuss.prosemirror.net/t/how-to-add-custom-event-handler-to-a-node-more-spcifically-mouse-hover-over-a-link/1527 "2018-09-22T02:15:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fqye](https://discuss.prosemirror.net/letter_avatar_proxy/v4/letter/f/c5a1d2/32.png) [@fqye](https://discuss.prosemirror.net/u/fqye)\
**Post date:** [September 22, 2018, 2:15am UTC](https://discuss.prosemirror.net/t/how-to-add-custom-event-handler-to-a-node-more-spcifically-mouse-hover-over-a-link/1527/1 "2018-09-22T02:15:55Z")

</div>

My use case is that I wish to show a popup link editor when mouse is hovering over a link, much like a tooltip. Couldn’t figure it out how to do it. Do I need to implement a custom link NodeView?

---

<div class="post-metadata">

**Author:** ![marijn](https://discuss.prosemirror.net/user_avatar/discuss.prosemirror.net/marijn/32/15_2.png) [@marijn](https://discuss.prosemirror.net/u/marijn)\
**Post date:** [September 22, 2018, 6:45pm UTC](https://discuss.prosemirror.net/t/how-to-add-custom-event-handler-to-a-node-more-spcifically-mouse-hover-over-a-link/1527/2 "2018-09-22T18:45:44Z")

</div>

No, you should be able to listen to `mouseover` and `mouseout` DOM events (via the `handleDOMEvents` prop).

---

<div class="post-metadata">

**Author:** ![fqye](https://discuss.prosemirror.net/letter_avatar_proxy/v4/letter/f/c5a1d2/32.png) [@fqye](https://discuss.prosemirror.net/u/fqye)\
**Post date:** [September 23, 2018, 1:10am UTC](https://discuss.prosemirror.net/t/how-to-add-custom-event-handler-to-a-node-more-spcifically-mouse-hover-over-a-link/1527/3 "2018-09-23T01:10:31Z")

</div>

Got it. Thanks
