The body field of a content entity bundle can't be "text only" by default

Created on 7 November 2023, 8 months ago

Is there any logical reason why the `body` of an content entity cannot be text only? The default formatters are `Basic HTML` and `Full HTML`. These defaults makes it dificult to reuse that field for applications which will not use HTML tags. (Imagine just other formats, which are transfered to any type of javascript frontend).

The thing is there is a way to have text only, which can only (in D9) be achieved, when you delete the HTML formatters. I did this once and it was pain in the butt to undo it.

The `plain text` format is for some reason protected by Drupal to only get used (and not show up in the dropdown) as an option. I do like the CKeditor, for sure, but why not allow a text only format by default?

(I noticed I can add my own format, which will use no editor and can achieve the same, but I cannot just use the "plain_text" format out of the box.

✨ Feature request
Status

Active

Version

11.0 πŸ”₯

Component
EntityΒ  β†’

Last updated 1 day ago

Created by

πŸ‡©πŸ‡ͺGermany ro-no-lo

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024