Problem/Motivation
The display_builder_html text format used by the Textarea source does not allow <p> or <br>. CKEditor writes every paragraph as a <p>. The filter_html filter strips them, so all paragraphs render as one block of text.
Steps to reproduce
- Add a Textarea source in the builder.
- Type two paragraphs, or a line break with Shift+Enter.
- Check the preview or the published output: the text runs together.
Proposed resolution
- Add
<br> <p>toallowed_htmlinconfig/optional/filter.format.display_builder_html.yml. - Add a post update for existing sites. It adds only the missing tags and skips sites that already allowed them or deleted the format.
- Document the one-time change in
docs/textarea.md.
Remaining tasks
- Review.
User interface changes
None.
API changes
None.
Data model changes
New post update display_builder_post_update_allow_paragraphs_in_textarea_format() changes the stored display_builder_html format config.
Issue fork display_builder-3626751
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
mogtofu33 commented