# How to edit the HTML in the WYSIWYG editor?

**URL:** <https://discourse.getcockpit.com/t/how-to-edit-the-html-in-the-wysiwyg-editor/3231>\
**Category:** Uncategorized\
**Created:** [July 30, 2025, 8:41am UTC](https://discourse.getcockpit.com/t/how-to-edit-the-html-in-the-wysiwyg-editor/3231 "2025-07-30T08:41:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sephen](https://avatars.discourse-cdn.com/v4/letter/s/ee7513/32.png) [@Sephen](https://discourse.getcockpit.com/u/Sephen)\
**Post date:** [July 30, 2025, 8:41am UTC](https://discourse.getcockpit.com/t/how-to-edit-the-html-in-the-wysiwyg-editor/3231/1 "2025-07-30T08:41:06Z")

</div>

Since the new tiptap editor I’m not able to change the HTML in the wysiwyg editor.  
How can I add the code/html functionality to the editor toolbar

”code” clearly doesn’t work

```auto
{toolbar: ‘format | alignLeft alignCenter alignRight | link image | listBullet listOrdered | table hr | bold italic underline strikethrough | subscript superscript | code highLight color | undo redo’,}

```

---

<div class="post-metadata">

**Author:** ![eatos](https://avatars.discourse-cdn.com/v4/letter/e/90ced4/32.png) [@eatos](https://discourse.getcockpit.com/u/eatos)\
**Post date:** [October 7, 2025, 3:13am UTC](https://discourse.getcockpit.com/t/how-to-edit-the-html-in-the-wysiwyg-editor/3231/2 "2025-10-07T03:13:09Z")

</div>

Ok, I just went through the “editor-actions.js” file and there seems to be no option for “code” functionality at all.

Could someone please confirm if that’s the case cause that’s a core functionality for me? Thanks!

---

<div class="post-metadata">

**Author:** ![nadobydev](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/nadobydev/32/1474_2.png) [@nadobydev](https://discourse.getcockpit.com/u/nadobydev)\
**Post date:** [June 10, 2026, 10:38am UTC](https://discourse.getcockpit.com/t/how-to-edit-the-html-in-the-wysiwyg-editor/3231/3 "2026-06-10T10:38:07Z")

</div>

I’ve tried all the options, but the HTML editor does not appear.  
How do I enable it? Can someone help?

```auto
{
  toolbar: 'format | alignLeft alignCenter alignRight | link image | listBullet listOrdered | table hr | bold italic underline strikethrough | subscript superscript | code highLight color | undo redo',
}

```

```auto
{
  "editor": {
    "plugins": "code link image lists table hr",
    "toolbar": "undo redo | bold italic underline | alignleft aligncenter alignright | bullist numlist | link image | table hr | code",
    "menubar": "edit insert view format tools"
  }
}

```

```auto
{
  "editor": {
    "plugins": "code",
    "toolbar": "code"
  }
}

```
