# Editor for Light/Dark theme does not clear between fields

**URL:** https://meta.discourse.org/t/editor-for-light-dark-theme-does-not-clear-between-fields/125367
**Category:** Bug
**Created:** [August 9, 2019, 11:40pm UTC](https://meta.discourse.org/t/editor-for-light-dark-theme-does-not-clear-between-fields/125367 "2019-08-09T23:40:43Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Cardinalflyer](https://avatars.discourse-cdn.com/v4/letter/c/f14d63/32.png) [@Cardinalflyer](https://meta.discourse.org/u/Cardinalflyer)
#### Post date: [August 9, 2019, 11:40pm UTC](https://meta.discourse.org/t/editor-for-light-dark-theme-does-not-clear-between-fields/125367/1 "2019-08-09T23:40:43Z")

</div>

While adding a copyright notice to the footer of my system I noticed that the “Edit CSS/HTML” theme editor did not ‘flush’ the edit buffer contents when moving from a field with data to an unused field.

As a result, when I clicked on Footer (which had been empty) my CSS contents were presented there as if they were existing content.

I sorted it out, but that seems like it could be a pretty simple fix which might avoid confusion in the future.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [August 10, 2019, 4:28am UTC](https://meta.discourse.org/t/editor-for-light-dark-theme-does-not-clear-between-fields/125367/2 "2019-08-10T04:28:14Z")

</div>

Can you repro this @tshenry?

---

<div class="post-metadata">

### Author: ![tshenry](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tshenry/32/119495_2.png) [@tshenry](https://meta.discourse.org/u/tshenry)
#### Post date: [August 12, 2019, 7:23pm UTC](https://meta.discourse.org/t/editor-for-light-dark-theme-does-not-clear-between-fields/125367/3 "2019-08-12T19:23:02Z")

</div>

Hey @Cardinalflyer. I just want to make sure I am understanding correctly. Are the steps below accurate?

1. Go to the “Edit CSS/HTML” page of a theme
2. Enter some CSS into the “Common” CSS section
3. Select the (empty) “Common” Footer section
4. CSS code from step 2 displays in the “Common” Footer section

If the above is what you experienced, I’m unable to repro on Safari, Firefox, or Chrome. If there’s more to the story, please let me know.

---

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [August 12, 2019, 8:13pm UTC](https://meta.discourse.org/t/editor-for-light-dark-theme-does-not-clear-between-fields/125367/4 "2019-08-12T20:13:41Z")

</div>

Have you updated recently? I believe this was a bug that was fixed recently, but I can’t find the specific topic for it.

---

<div class="post-metadata">

### Author: ![Cardinalflyer](https://avatars.discourse-cdn.com/v4/letter/c/f14d63/32.png) [@Cardinalflyer](https://meta.discourse.org/u/Cardinalflyer)
#### Post date: [August 12, 2019, 8:21pm UTC](https://meta.discourse.org/t/editor-for-light-dark-theme-does-not-clear-between-fields/125367/5 "2019-08-12T20:21:28Z")

</div>

I’m with [Discourcehosting.com](http://Discourcehosting.com), the dashboard says Discourse was updated July 15th.

@tshenry, you are pretty close to what I’m seeing.

I have just a little CSS code in the CSS tab. When I click on the ‘edit CSS/HTML’ button it starts with the CSS field:

 ![image](https://global.discourse-cdn.com/meta/original/3X/b/7/b71a423407240185aaadf554f1c2deb3eb902082.png)

If I then click on, say, /head, (notice that it is not bold, showing that it is empty) the tab shading changes but the edit window does not:

 ![image](https://global.discourse-cdn.com/meta/original/3X/8/9/89587aca1d9ba7a360dd22026c8900e83cdd87ce.png)

If I click on ‘header’ (which has content) the edit window loads it properly:

 ![image](https://global.discourse-cdn.com/meta/original/3X/4/6/4672b1b08312672decd240f95588b9af0684f2a2.png)

Next I click on ‘after header’ and the edit buffer stays:

 ![image](https://global.discourse-cdn.com/meta/original/3X/7/8/786fad0e5a0e15a15ad473e35e4566edaa9256d8.png)

I am using Chrome. Thanks!

---

<div class="post-metadata">

### Author: ![tshenry](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tshenry/32/119495_2.png) [@tshenry](https://meta.discourse.org/u/tshenry)
#### Post date: [August 12, 2019, 9:02pm UTC](https://meta.discourse.org/t/editor-for-light-dark-theme-does-not-clear-between-fields/125367/6 "2019-08-12T21:02:51Z")

</div>

Hey, thanks for the extra info! As @awesomerobot mentioned, I seem to recall this being a bug that did get fixed. Can you see if the `[Communiteq](https://www.communiteq.com) (formerly DiscourseHosting)` guys can update your site? If they aren’t able to update you on-demand, can you report back once you do get updated?

---

<div class="post-metadata">

### Author: ![Cardinalflyer](https://avatars.discourse-cdn.com/v4/letter/c/f14d63/32.png) [@Cardinalflyer](https://meta.discourse.org/u/Cardinalflyer)
#### Post date: [August 12, 2019, 9:53pm UTC](https://meta.discourse.org/t/editor-for-light-dark-theme-does-not-clear-between-fields/125367/7 "2019-08-12T21:53:08Z")

</div>

Sure, I can do that. Luckily this issue doesn’t impact day to day work.

I have another issue which is also supposed to have been resolved after that 7/15th date… I’ll just watch for an update and come back to check.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [August 13, 2019, 5:36am UTC](https://meta.discourse.org/t/editor-for-light-dark-theme-does-not-clear-between-fields/125367/8 "2019-08-13T05:36:33Z")

</div>


