# Missing refresh of preview area with add-on

**URL:** https://meta.discourse.org/t/missing-refresh-of-preview-area-with-add-on/52373
**Category:** Feature
**Created:** [2 בנובמבר,‏ 2016,‏ 1:08pm UTC](https://meta.discourse.org/t/missing-refresh-of-preview-area-with-add-on/52373 "2016-11-02T13:08:43Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![danieln](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/danieln/32/121456_2.png) [@danieln](https://meta.discourse.org/u/danieln)
#### Post date: [2 בנובמבר,‏ 2016,‏ 1:08pm UTC](https://meta.discourse.org/t/missing-refresh-of-preview-area-with-add-on/52373/1 "2016-11-02T13:08:43Z")

</div>

The preview area on the right gets automatically updated when typing in a new post. However, it does not get updated when the text gets modified by a browser add-on that directly changes the DOM. This is unfortunate, as it seems to be the preview area which gets actually posted.

The concrete use case I’m looking at is using the add-ons of my style and grammar checker ([https://languagetool.org](https://languagetool.org)). It opens a popup and users can accept its suggestions, but due to the way Discourse behaves, the change will not end up in the preview until the user manually enters more text. Is this something that could be fixed?

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [2 בנובמבר,‏ 2016,‏ 1:40pm UTC](https://meta.discourse.org/t/missing-refresh-of-preview-area-with-add-on/52373/2 "2016-11-02T13:40:37Z")

</div>

> [@danieln](#):
>
> This is unfortunate, as it seems to be the preview area which gets actually posted.

I don’t think that’s the case, what gets posted is the raw text at the left.

---

<div class="post-metadata">

### Author: ![danieln](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/danieln/32/121456_2.png) [@danieln](https://meta.discourse.org/u/danieln)
#### Post date: [2 בנובמבר,‏ 2016,‏ 2:21pm UTC](https://meta.discourse.org/t/missing-refresh-of-preview-area-with-add-on/52373/3 "2016-11-02T14:21:18Z")

</div>

> [@Falco](#):
>
> I don’t think that’s the case, what gets posted is the raw text at the left.

Just tried this several times: when clicking the submit button, the edit gets copied to the preview, so that’s okay anyway. But there’s still a case when this doesn’t work: when the add-on’s popup is still open, the edit does not get copied to the preview area for some reason (tested in Firefox). Maybe because the focus is in the add-on’s popup. I could make it post a text that was corrected only in the editor, not in the preview. The post that appeared was the uncorrected one from the preview. It wasn’t a new post, but an edit of an existing post.
