Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Though the editor is disabled with restricted_html, it is activated on the edit form. If I create my own text format similar to restricted_html, it works.
The reason seems to be that "editor" is still a requirement for this text format, but it is deactivated as you can see in the configuration:
...
langcode: de
status: true
dependencies:
module:
- editor
...
editor_file_reference:
id: editor_file_reference
provider: editor
status: false
weight: -45
settings: { }
...
Thus the input is polluted with p-tags!
Comments
Comment #2
tim.plunkettComment #3
swentel CreditAttribution: swentel as a volunteer commentedHow do we reproduce this ? Standard install doesn't even have an editor on the restricted format ..
Comment #4
Wim LeersI'm sorry, but none of this makes any sense.
This is untrue. I created an article with the
restricted_html
text format, saved it, then edited it and still no text editor.What works?
This is not what the
restricted_html
text format config entity looks like by default. It looks like this:No dependency on the
editor
module.Huh? Yes, of course, that's how it is configured: to automatically create
<p>
-tags, and not rely on the text editor to create them. If you associate a text editor with therestricted_html
text format, you must manually remove the filter that automatically creates<p>
tags.Comment #5
Pepe Roni CreditAttribution: Pepe Roni as a volunteer commented@ #4: as you can see in the history, my bug report was for 8.0.0 and not 8.0.x-dev. And in 8.0.0 this bug was present, but in current 8.0.1 it is not. So blaming me a liar is unrewarding.
I closed this bug report as fixed in 8.0.1.