# Bad user experience when quoting an entire post via toolbar button

**URL:** https://meta.discourse.org/t/bad-user-experience-when-quoting-an-entire-post-via-toolbar-button/68773
**Category:** Feature
**Created:** [25 augustus 2017 om 13:08 UTC](https://meta.discourse.org/t/bad-user-experience-when-quoting-an-entire-post-via-toolbar-button/68773 "2017-08-25T13:08:15Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [25 augustus 2017 om 14:04 UTC](https://meta.discourse.org/t/bad-user-experience-when-quoting-an-entire-post-via-toolbar-button/68773/5 "2017-08-25T14:04:01Z")

</div>

Undo not working was discussed in this topic

> [@Undo (Ctrl/Cmd+Z) doesn't work for Markdown](https://meta.discourse.org/t/undo-ctrl-cmd-z-doesnt-work-for-markdown/51026):
>
> You can’t undo (Ctrl/Cmd+Z) Markdown formatting (e.g., bold). Steps to replicate: Start a new topic. Write three words. Highlight the second word and press Ctrl/Cmd+B Press Ctrl/Cmd+Z Expected result: Asterisks would be removed Actual result: Different in different browsers tested (Safari & Chrome on macOS), but not the expected result.

> [@Undo (Ctrl/Cmd+Z) doesn't work for Markdown](https://meta.discourse.org/t/undo-ctrl-cmd-z-doesnt-work-for-markdown/51026/14):
>
> There are zero plans to revisit this. Closing this topic because bikeshedding. The native browser form input element behavior is what you get – if you don’t like that, take it up with your friendly neighborhood browser vendor.

The issue is that Discourse’s editor buttons manipulate the `<input>` content directly, so the browser doesn’t know what’s going on and therefore can’t manage the undo history. Changing the editor buttons to use a technique like this, rather than modifying the `<input>` element directly would probably help:

> <https://stackoverflow.com/questions/16195644/in-chrome-undo-does-not-work-properly-for-input-element-after-contents-changed-p/27028331#27028331>

---

_[View the full topic](https://meta.discourse.org/t/bad-user-experience-when-quoting-an-entire-post-via-toolbar-button/68773)._
