# Does it's possible to avoid some step add to history?

**URL:** <https://discuss.prosemirror.net/t/does-its-possible-to-avoid-some-step-add-to-history/1445>\
**Category:** Uncategorized\
**Created:** [July 27, 2018, 8:25am UTC](https://discuss.prosemirror.net/t/does-its-possible-to-avoid-some-step-add-to-history/1445 "2018-07-27T08:25:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![iahu](https://discuss.prosemirror.net/user_avatar/discuss.prosemirror.net/iahu/32/684_2.png) [@iahu](https://discuss.prosemirror.net/u/iahu)\
**Post date:** [July 27, 2018, 8:25am UTC](https://discuss.prosemirror.net/t/does-its-possible-to-avoid-some-step-add-to-history/1445/1 "2018-07-27T08:25:47Z")

</div>

I want avoid the focus and blur events trigged `tr`s add to history, does it’s possible? Thanks.

---

<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:** [July 27, 2018, 8:39pm UTC](https://discuss.prosemirror.net/t/does-its-possible-to-avoid-some-step-add-to-history/1445/2 "2018-07-27T20:39:55Z")

</div>

What kind of transactions do focus and blur create? I don’t think they should be creating transactions, by default, and if you mean selection-change transactions, those don’t end up in the history anyway.

On gitter, I answered your question with: No. You can prevent changes from being added to the history when you make them, but not afterwards, and adding things to history without actually performing the changes doesn’t exist (though if you want to start an editor state with some history you can ‘replay’ those changes in the state when you create it, and they’ll be in the history) \_

---

<div class="post-metadata">

**Author:** ![iahu](https://discuss.prosemirror.net/user_avatar/discuss.prosemirror.net/iahu/32/684_2.png) [@iahu](https://discuss.prosemirror.net/u/iahu)\
**Post date:** [July 30, 2018, 2:20am UTC](https://discuss.prosemirror.net/t/does-its-possible-to-avoid-some-step-add-to-history/1445/3 "2018-07-30T02:20:44Z")

</div>

Thanks your reply, marijn. It’s a custom placeholder component, hidden when focus, and show when blur and no inputed content. I want remove the hidden and show again actions created transactions from history.
