# Inconsistent micro-edit button behavior

**URL:** https://meta.discourse.org/t/inconsistent-micro-edit-button-behavior/269382
**Category:** Support
**Created:** [June 23, 2023, 1:19pm UTC](https://meta.discourse.org/t/inconsistent-micro-edit-button-behavior/269382 "2023-06-23T13:19:41Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![rahim123](https://avatars.discourse-cdn.com/v4/letter/r/df705f/32.png) [@rahim123](https://meta.discourse.org/u/rahim123)
#### Post date: [June 23, 2023, 1:19pm UTC](https://meta.discourse.org/t/inconsistent-micro-edit-button-behavior/269382/1 "2023-06-23T13:19:41Z")

</div>

`I` honestly `can't` figure out `any` rhyme `or` reason `for` how `the` `micro` **Edit** `button` works (the one where you select text in your published post and an **Edit** button pops up). Sometimes selecting a single whole word opens the popup micro editor, and sometimes it opens the complete post editor. Same goes for selecting multiple words or multiple partial words. Any suggestions or explanations? Thanks!

_ **Edits:** _ In the sentence _I honestly can’t figure out any rhyme or reason for how the micro Edit button works_ I selected each word individually and hit the popup **Edit** button and put the word in `monospaced` text when it took me to the full editor.

---

<div class="post-metadata">

### Author: ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)
#### Post date: [June 23, 2023, 1:24pm UTC](https://meta.discourse.org/t/inconsistent-micro-edit-button-behavior/269382/2 "2023-06-23T13:24:34Z")

</div>

The answer I got when I asked this internally was:

If Discourse can determine from the selected text without ambiguity _exactly_ which text in the post is being edited, it’ll use the mini editor. Else it’ll use the full editor.

---

<div class="post-metadata">

### Author: ![renato](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/renato/32/383632_2.png) [@renato](https://meta.discourse.org/u/renato)
#### Post date: [June 23, 2023, 1:39pm UTC](https://meta.discourse.org/t/inconsistent-micro-edit-button-behavior/269382/3 "2023-06-23T13:39:58Z")

</div>

This is where this is currently defined:

> <https://github.com/discourse/discourse/blob/6d9568a9a297c2f1f1b651cf74f4af7124ae7edf/app/assets/javascripts/discourse/app/components/quote-button.js#L159-L186>

I believe that in your test you hit the “duplicates are too complex” condition, like Michael said. It also uses the full editor if tables, line breaks or non-ascii characters are involved.
