# catch redo/undo event?

**URL:** https://discuss.codemirror.net/t/catch-redo-undo-event/8389
**Category:** v5
**Created:** [June 25, 2024, 11:32am UTC](https://discuss.codemirror.net/t/catch-redo-undo-event/8389 "2024-06-25T11:32:12Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![newbie123](https://discuss.codemirror.net/letter_avatar_proxy/v4/letter/n/bbce88/32.png) [@newbie123](https://discuss.codemirror.net/u/newbie123)
#### Post date: [June 25, 2024, 11:32am UTC](https://discuss.codemirror.net/t/catch-redo-undo-event/8389/1 "2024-06-25T11:32:12Z")

</div>

is there an option or way to catch undo/redo events or like which events do still get fired.

on(“change”) or on(“beforeChange”) or on(“beforeSelectionChanged”) kinda don’t get fired on redo/undo

---

<div class="post-metadata">

### Author: ![marijn](https://discuss.codemirror.net/user_avatar/discuss.codemirror.net/marijn/32/136_2.png) [@marijn](https://discuss.codemirror.net/u/marijn)
#### Post date: [June 25, 2024, 11:46am UTC](https://discuss.codemirror.net/t/catch-redo-undo-event/8389/2 "2024-06-25T11:46:02Z")

</div>

> [@newbie123](#):
>
> on(“change”) or on(“beforeChange”) or on(“beforeSelectionChanged”) kinda don’t get fired on redo/undo

They definitely do.

---

<div class="post-metadata">

### Author: ![newbie123](https://discuss.codemirror.net/letter_avatar_proxy/v4/letter/n/bbce88/32.png) [@newbie123](https://discuss.codemirror.net/u/newbie123)
#### Post date: [June 25, 2024, 11:58am UTC](https://discuss.codemirror.net/t/catch-redo-undo-event/8389/3 "2024-06-25T11:58:24Z")

</div>

okay, then i have to find the error on my side thanks
