# Bug: Fix undo with HTML blocks

**URL:** <https://forum.ghost.org/t/bug-fix-undo-with-html-blocks/3847>\
**Category:** Developer help\
**Created:** [November 2, 2018, 8:14am UTC](https://forum.ghost.org/t/bug-fix-undo-with-html-blocks/3847 "2018-11-02T08:14:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![HappyThoughts](https://avatars.discourse-cdn.com/v4/letter/h/c0e974/32.png) [@HappyThoughts](https://forum.ghost.org/u/HappyThoughts)\
**Post date:** [November 2, 2018, 8:14am UTC](https://forum.ghost.org/t/bug-fix-undo-with-html-blocks/3847/1 "2018-11-02T08:14:40Z")

</div>

If you have an HTML block with some html code in it, you make changes to it, then hit CTRL+S it will save. Then select the block and delete it. If you press CTRL+Z it will undo, but the block will return with old content from some random earlier save point, not the most recent save you just did.

It seems like a lot of users are having [issues with this](https://forum.ghost.org/t/prevent-block-deletion-on-koenig-or-bring-markdown-back/3669/3).

---

<div class="post-metadata">

**Author:** ![Kevin](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/kevin/32/32_2.png) [@Kevin](https://forum.ghost.org/u/Kevin)\
**Post date:** [November 2, 2018, 9:09am UTC](https://forum.ghost.org/t/bug-fix-undo-with-html-blocks/3847/2 "2018-11-02T09:09:27Z")

</div>

The issue is being tracked here [Undo after deleting a card can lose card contents · Issue #10049 · TryGhost/Ghost · GitHub](https://github.com/TryGhost/Ghost/issues/10049)

---

<div class="post-metadata">

**Author:** ![HappyThoughts](https://avatars.discourse-cdn.com/v4/letter/h/c0e974/32.png) [@HappyThoughts](https://forum.ghost.org/u/HappyThoughts)\
**Post date:** [November 2, 2018, 9:24pm UTC](https://forum.ghost.org/t/bug-fix-undo-with-html-blocks/3847/3 "2018-11-02T21:24:00Z")

</div>

Thanks 🙂

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/b/ba9ce5100b8bb264586f4f572545596b2ce3f081.png) [@system](https://forum.ghost.org/u/system)\
**Post date:** [November 16, 2018, 9:24pm UTC](https://forum.ghost.org/t/bug-fix-undo-with-html-blocks/3847/4 "2018-11-16T21:24:05Z")

</div>

Closed on November 16, 2018, 9:24pm UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
