# Add ability to undo text formatting

**URL:** https://discourse.julialang.org/t/add-ability-to-undo-text-formatting/80088
**Category:** Meta Discussion
**Created:** [April 26, 2022, 6:59pm UTC](https://discourse.julialang.org/t/add-ability-to-undo-text-formatting/80088 "2022-04-26T18:59:28Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![chadagreene](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chadagreene/32/34924_2.png) [@chadagreene](https://discourse.julialang.org/u/chadagreene)
#### Post date: [April 26, 2022, 6:59pm UTC](https://discourse.julialang.org/t/add-ability-to-undo-text-formatting/80088/1 "2022-04-26T18:59:28Z")

</div>

I’m new to the forum, and I’m very impressed by how beautifully the site is designed. However, I often want the ability to undo text formatting after I’ve applied it.

When **Undo** is desired: I frequently highlight a selection of text I’m composing, and then I want to press the **B** or _I_ buttons to see if the selection looks better in boldface or italics. But after applying any formatting, Ctrl+Z has no effect. It’d be great to add some way to undo text formatting.

---

<div class="post-metadata">

### Author: ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)
#### Post date: [April 26, 2022, 7:19pm UTC](https://discourse.julialang.org/t/add-ability-to-undo-text-formatting/80088/2 "2022-04-26T19:19:42Z")

</div>

You can toggle between the states using the same button/hotkey you used to format in the first place.

---

<div class="post-metadata">

### Author: ![chadagreene](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chadagreene/32/34924_2.png) [@chadagreene](https://discourse.julialang.org/u/chadagreene)
#### Post date: [April 26, 2022, 7:22pm UTC](https://discourse.julialang.org/t/add-ability-to-undo-text-formatting/80088/3 "2022-04-26T19:22:01Z")

</div>

Oh that’s it! Thank you @fredrikekre!

---

<div class="post-metadata">

### Author: ![chadagreene](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chadagreene/32/34924_2.png) [@chadagreene](https://discourse.julialang.org/u/chadagreene)
#### Post date: [April 27, 2022, 2:43pm UTC](https://discourse.julialang.org/t/add-ability-to-undo-text-formatting/80088/4 "2022-04-27T14:43:05Z")

</div>

Oh, I spoke too soon. Try highlighting a word in the middle of a paragraph, then click the **Blockquote** button, then Undo.

---

<div class="post-metadata">

### Author: ![mbauman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mbauman/32/31082_2.png) [@mbauman](https://discourse.julialang.org/u/mbauman)
#### Post date: [April 27, 2022, 2:53pm UTC](https://discourse.julialang.org/t/add-ability-to-undo-text-formatting/80088/5 "2022-04-27T14:53:36Z")

</div>

This is an upstream issue, that unfortunately looks like it hit a deadend:

> **[Undo (Ctrl/Cmd+Z) doesn't work for Markdown](https://meta.discourse.org/t/undo-ctrl-cmd-z-doesnt-work-for-markdown/51026/13)**
>
> I think there are two related, but seperate problems here: Undo doesn’t work for the actions of toolbar buttons and shortcuts Using the toolbar buttons breaks the edit history of the input so using Ctrl + Z actually does really unexpected thing....

---

<div class="post-metadata">

### Author: ![chadagreene](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chadagreene/32/34924_2.png) [@chadagreene](https://discourse.julialang.org/u/chadagreene)
#### Post date: [April 27, 2022, 2:56pm UTC](https://discourse.julialang.org/t/add-ability-to-undo-text-formatting/80088/6 "2022-04-27T14:56:46Z")

</div>

Wow, okay, thanks for tracking that down, @mbauman!
