# Prevent editing in content editors

**URL:** <https://community.hubspot.com/t/prevent-editing-in-content-editors/16431>\
**Category:** CMS Development\
**Created:** [September 26, 2019, 6:49am UTC](https://community.hubspot.com/t/prevent-editing-in-content-editors/16431 "2019-09-26T06:49:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dranreb](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dranreb/32/41549_2.png) [@dranreb](https://community.hubspot.com/u/dranreb)\
**Post date:** [September 26, 2019, 6:49am UTC](https://community.hubspot.com/t/prevent-editing-in-content-editors/16431/1 "2019-09-26T06:49:08Z")

</div>

Modules where “Prevent editing in content editors” is toggled are now showing in the content editor. For example, I now see modules like the “Horizontal Spacer” in the content editor. As they are not editable, it is difficult to understand why they’re now shown in the content editor. It is very messy at the moment with useless modules to the editor being shown.

Has anyone found a workaround for hiding these modules in the content editor?

---

<div class="post-metadata">

**Author:** ![Stephanie-OG](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/stephanie-og/32/73267_2.png) [@Stephanie-OG](https://community.hubspot.com/u/Stephanie-OG)\
**Post date:** [September 26, 2019, 3:20pm UTC](https://community.hubspot.com/t/prevent-editing-in-content-editors/16431/2 "2019-09-26T15:20:18Z")

</div>

This is used a lot for, say, global content that you’d like to appear on the page but you don’t want people changing at the page level. So I could have something like this at the bottom of my posts that I don’t necessarily want to hide:

 ![Prevent editing in content editors.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/3X/8/1/81457bf58d2a752548bf4063584391da4a52024c.jpeg)

If you don’t want these visible at all, what you could do is set a class “hide-in-content-editor” on modules you’d like to hide and then use the editor’s body class “hs-inline-edit” to hide that. So something like:

`.hs-inline-edit .hide-in-content-editor { display: none; }`

Or maybe hide the specific module on the modules sidebar using “hs-inline-edit” and the module ID?

 ![Hide module.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/3X/1/9/1939dcbd03d621682cdab4b8fb50d2b93cb3695f.jpeg)

I haven’t used it for this specifically but I’ve used the opposite to display elements in the editor that I don’t want visible elsewhere (like an “Edit this module” button that’s set to not display by default but set to block on the .hs-inline-edit page).

I hope that helps!

* * *

**Stephanie O’Gay Garcia**

HubSpot CMS Design & Development

[Website](http://www.stephanieogaygarcia.com?utm_source=HubSpotCommunity) | [Contact](http://www.stephanieogaygarcia.com/contact?utm_source=HubSpotCommunity)

_If this helped, please mark it as the solution to your question, thanks!_
