# HTML Editor - something strange

**URL:** <https://forum.radzen.com/t/html-editor-something-strange/5670>\
**Category:** Blazor Server\
**Created:** [November 18, 2020, 8:29am UTC](https://forum.radzen.com/t/html-editor-something-strange/5670 "2020-11-18T08:29:27Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thomas](https://forum.radzen.com/letter_avatar_proxy/v4/letter/t/e36b37/32.png) [@Thomas](https://forum.radzen.com/u/Thomas)\
**Post date:** [November 18, 2020, 8:29am UTC](https://forum.radzen.com/t/html-editor-something-strange/5670/1 "2020-11-18T08:29:27Z")

</div>

Hello Radzen Team,  
first... Great Work with the HTML Editor!

But in one of my applications the HTML Editor looks strange:

 ![image](https://forum.radzen.com/uploads/default/original/2X/3/39b8447d8ad96ea33db844c1bf100d505496a037.png)

After a bit of searching i found out that the HTML Editor doesnt show up in the "customize theme"

 ![image](https://forum.radzen.com/uploads/default/original/2X/0/09347d930af4d9015e325081fe0c72b134a98448.png)

In my other app the HTML Editor looks good

 ![image](https://forum.radzen.com/uploads/default/original/2X/d/de363f5978828e10970c63675f513d26d6068c9a.png)  
and in the "customize theme" the HTML Editor shows up:  
 ![image](https://forum.radzen.com/uploads/default/original/2X/5/5613e20e16aca8e67d4583ae9583e7651553a683.png)

Any Ideas what happens here?

Kind Regards

---

<div class="post-metadata">

**Author:** ![korchev](https://forum.radzen.com/user_avatar/forum.radzen.com/korchev/32/4_2.png) [@korchev](https://forum.radzen.com/u/korchev)\
**Post date:** [November 18, 2020, 8:38am UTC](https://forum.radzen.com/t/html-editor-something-strange/5670/2 "2020-11-18T08:38:44Z")

</div>

You are having a custom theme which was created before the editor existed. Try saving it again.

---

<div class="post-metadata">

**Author:** ![Thomas](https://forum.radzen.com/letter_avatar_proxy/v4/letter/t/e36b37/32.png) [@Thomas](https://forum.radzen.com/u/Thomas)\
**Post date:** [November 18, 2020, 9:12am UTC](https://forum.radzen.com/t/html-editor-something-strange/5670/3 "2020-11-18T09:12:38Z")

</div>

Hi @korchev,  
the HTML Editor now looks good.

 ![image](https://forum.radzen.com/uploads/default/original/2X/a/a9b6b259fb6331669f44cbcddfd7e5c6cdfcf2e4.png)  
But the cusomize theme properties for it are father missing:  
 ![image](https://forum.radzen.com/uploads/default/original/2X/7/7653c1a8eb0168762a4b48e5e622e33cc956fee7.png)  
(restarting Radzen didnt change that)  
Thomas

---

<div class="post-metadata">

**Author:** ![Thomas](https://forum.radzen.com/letter_avatar_proxy/v4/letter/t/e36b37/32.png) [@Thomas](https://forum.radzen.com/u/Thomas)\
**Post date:** [November 18, 2020, 9:14am UTC](https://forum.radzen.com/t/html-editor-something-strange/5670/4 "2020-11-18T09:14:49Z")

</div>

btw... the new "switch" component is missing in "customize theme". 😉  
I dont know how to change the color of the switch area.

Thomas

---

<div class="post-metadata">

**Author:** ![korchev](https://forum.radzen.com/user_avatar/forum.radzen.com/korchev/32/4_2.png) [@korchev](https://forum.radzen.com/u/korchev)\
**Post date:** [November 18, 2020, 9:15am UTC](https://forum.radzen.com/t/html-editor-something-strange/5670/5 "2020-11-18T09:15:54Z")

</div>

Your theme customization does not have the editor settings and that's why they don't appear. You can create an empty app, customize its theme and copy the editor keys from the app.json file.

---

<div class="post-metadata">

**Author:** ![Thomas](https://forum.radzen.com/letter_avatar_proxy/v4/letter/t/e36b37/32.png) [@Thomas](https://forum.radzen.com/u/Thomas)\
**Post date:** [November 18, 2020, 9:19am UTC](https://forum.radzen.com/t/html-editor-something-strange/5670/6 "2020-11-18T09:19:10Z")

</div>

Ok 👍🏼  
Thanks for help!

---

<div class="post-metadata">

**Author:** ![korchev](https://forum.radzen.com/user_avatar/forum.radzen.com/korchev/32/4_2.png) [@korchev](https://forum.radzen.com/u/korchev)\
**Post date:** [November 18, 2020, 9:24am UTC](https://forum.radzen.com/t/html-editor-something-strange/5670/7 "2020-11-18T09:24:12Z")

</div>

> [@Thomas](#):
>
> btw... the new "switch" component is missing in "customize theme"

Yeah, we know. Will add it at some point. Until then you can add the following to your themeSettings object in app.json:

```json
"$switch-background-color": "red",
"$switch-checked-background-color": "green"

```

The keys for the editor are:

```json
"$editor-toolbar-background-color": 'red',
"$editor-button-background-color": 'green',
"$editor-content-background-color": 'red',
"$editor-button-selected-background-color": 'red'

```

Note that you still need to go to the app settings in Radzen and save the theme in order to generate the updated CSS file.

---

<div class="post-metadata">

**Author:** ![Thomas](https://forum.radzen.com/letter_avatar_proxy/v4/letter/t/e36b37/32.png) [@Thomas](https://forum.radzen.com/u/Thomas)\
**Post date:** [November 19, 2020, 10:28am UTC](https://forum.radzen.com/t/html-editor-something-strange/5670/8 "2020-11-19T10:28:08Z")

</div>

Hi @korchev,  
i have done it like you suggest and it works fine!

Thomas

---

<div class="post-metadata">

**Author:** ![Thomas](https://forum.radzen.com/letter_avatar_proxy/v4/letter/t/e36b37/32.png) [@Thomas](https://forum.radzen.com/u/Thomas)\
**Post date:** [November 19, 2020, 10:30am UTC](https://forum.radzen.com/t/html-editor-something-strange/5670/9 "2020-11-19T10:30:37Z")

</div>

One problem with the HTML Editor...

When inserting an image and pressing "Ok"... nothing happens

Did i miss something? 🤔

Thomas

---

<div class="post-metadata">

**Author:** ![Thomas](https://forum.radzen.com/letter_avatar_proxy/v4/letter/t/e36b37/32.png) [@Thomas](https://forum.radzen.com/u/Thomas)\
**Post date:** [November 19, 2020, 10:36am UTC](https://forum.radzen.com/t/html-editor-something-strange/5670/10 "2020-11-19T10:36:28Z")

</div>

Ok... i Think perhaps its the Upload Url property....

---

<div class="post-metadata">

**Author:** ![korchev](https://forum.radzen.com/user_avatar/forum.radzen.com/korchev/32/4_2.png) [@korchev](https://forum.radzen.com/u/korchev)\
**Post date:** [November 19, 2020, 10:36am UTC](https://forum.radzen.com/t/html-editor-something-strange/5670/11 "2020-11-19T10:36:59Z")

</div>

You probably didn't implement file uploads. Check the [documentation](https://www.radzen.com/documentation/blazor/htmleditor/#file-upload).

---

<div class="post-metadata">

**Author:** ![Thomas](https://forum.radzen.com/letter_avatar_proxy/v4/letter/t/e36b37/32.png) [@Thomas](https://forum.radzen.com/u/Thomas)\
**Post date:** [November 19, 2020, 10:55am UTC](https://forum.radzen.com/t/html-editor-something-strange/5670/12 "2020-11-19T10:55:53Z")

</div>

Hi @korchev,  
you are right. Works now.

Thank You!  
Thomas
