---
title: Disable Code Editor
description: "[PublishPress Capabilities](https://publishpress.com/links/capabilities) allows you to remove the \"Code editor\" option for Gutenberg users. This will prevent users from accessing the HTML view of posts that they are editing. The Code editor is available using the 3 dots icon in the…"
url: "https://publishpress.com/knowledge-base/disable-code-editor/"
updated: "2023-05-03"
category: PublishPress Capabilities / Roles
---

# Disable Code Editor

[PublishPress Capabilities](https://publishpress.com/links/capabilities) allows you to remove the "Code editor" option for Gutenberg users. This will prevent users from accessing the HTML view of posts that they are editing.

The Code editor is available using the 3 dots icon in the top-right corner of the Gutenberg editor, as shown in the image below:

![Code Editor](https://publishpress.com/wp-content/uploads/2022/06/code-editor-1024x722.png)
Code Editor

The Code editor is also available for individual blocks using the "Edit as HTML" option that's shown below.

![Code Editor Block](https://publishpress.com/wp-content/uploads/2022/06/code-editor-block-1024x649.png)
Code Editor Block

Here are the steps to take to disable the Code editor for a user role:

- Go to the "Roles" screen.
- Edit a user role.
- Click the "Editing" tab.
- You can now choose to disable the "Code editor" for this role.

![](https://publishpress.com/wp-content/uploads/2023/05/disable-code-editor-1024x434.png)
Force Editor
