P Tags being injected inside LI tags

Created on 14 June 2024, 14 days ago

Problem/Motivation

We noticed then when we started using the USWDS CK5 text format that wheneve we created a UL with LI elements, ckeditor would inject P tags inside the LI tags.

We also noted that when using Drupal default "Full HTML" this behavior stopped, and we were given clean LI tags without P tags injected inside.

Steps to reproduce

1. Use USWDS CK5 text format on a body field
2. create UL
3. Add LIs inside your UL
4. Save node
5. rendered pager presents P tags inside of LI tags

Proposed resolution

Is there a way to disable this, OR opt into this behavior explicitly? We find that we prefer NO P tags inside our LI tags by default.

Thanks for your time!

πŸ’¬ Support request
Status

Active

Version

2.0

Component

User interface

Created by

πŸ‡ΊπŸ‡ΈUnited States nkraft

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

Comments & Activities

Production build 0.69.0 2024