Hello, we’re already limiting the RTE features for custom modules using `“enabled_features”: [“bold”, “link”]` in the modules fields.json. Is it also possible to do this for the global `post_body` RTE? Since we’re developing a custom theme, we obviously would like to prevent the editor from changing the font family, font size, pasting custom HTML, etc.
Hey @float,
unfortunately it’s not possible to disable certain features of the RTE on a global level.
Something you can do is to create your own RTE module and disable the default RTE via the theme.json or a template file.
For theme.json it would be
{
...
"hidden_modules": ["@hubspot/rich-text"]
...
}
For a template:
<!--
...
hiddenModules:
- '@hubSpot/rich-text'
...
-->
See the whole doc about hiding/disabling modules here
p.s. I know that disabling features in a RTE is something that is quite a requirement to keep your theme “safe”, but from a UX perspective - I wouldn’t recommend to disable the default RTE
best,
Anton
