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

Created on 7 November 2023, about 1 year 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 about 22 hours 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.71.5 2024