# הוסף תמיכה טובה יותר בביטול בעת הכנסת טקסט מעוצב

**URL:** <https://meta.discourse.org/t/add-better-undo-support-when-inserting-formatted-text/214821>\
**Category:** Feature\
**Created:** [14 בינואר,‏ 2022,‏ 4:16am UTC](https://meta.discourse.org/t/add-better-undo-support-when-inserting-formatted-text/214821 "2022-01-14T04:16:44Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![seanblue](https://avatars.discourse-cdn.com/v4/letter/s/dc4da7/32.png) [@seanblue](https://meta.discourse.org/u/seanblue)\
**Post date:** [14 בינואר,‏ 2022,‏ 4:16am UTC](https://meta.discourse.org/t/add-better-undo-support-when-inserting-formatted-text/214821/1 "2022-01-14T04:16:44Z")

</div>

Right now in Discourse, if you paste plain text into the composer, typical browser behavior via Ctrl+Z will undo that paste and remove the pasted text. However, if you paste formatted text **such as this bold text** , undo doesn’t work. Similarly, pasting links on top of text to linkify them cannot be undone, nor can the markdown inserted via shortcuts like Ctrl+B or when adding formatting from the composer toolbar options. Ideally, as much of this as possible would be added to the undo stack so Ctrl+Z works.

Let me give a description of what happens to me fairly often.

1. I copy some text from another website which happens to be a link, bold, a header, etc. (Sometimes this fact registers and sometimes it does not.)
2. I go to Discourse to paste this text into my already partially written post.
3. I hit Ctrl+V which inserts the formatted text.
4. I realize my mistake and hit Ctrl+Z, which does nothing.
5. I manually remove the formatted text that I inserted by mistake. (Most often it’s the linked version that I pasted by mistake, so not like I just have to remove a `#` or something like that.)
6. I hit Ctrl+Shift+V which I should have done the first time to paste the unformatted text.

Obviously this is in part user error, and when I don’t mess up it’s only two steps (copy from other website, paste as plain text in Discourse). But when I do mess up (which is often since I’m used to just hitting Ctrl+V given that most websites don’t do formatted pasting) it would be nice if I could save some time by Ctrl+Z working like normal.

---

_[View the full topic](https://meta.discourse.org/t/add-better-undo-support-when-inserting-formatted-text/214821)._
