P Tags being injected inside LI tags

Created on 14 June 2024, 6 months ago
Updated 27 August 2024, 4 months 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

Closed: outdated

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

  • Issue created by @nkraft
  • Status changed to Closed: outdated 4 months ago
  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    So for v3 we actually dropped any text formatter config.

    Ckeditor5 is such a PITA that keeping up with all the changes was becoming near impossible. What you're doing is correct and use a fresh formatter with the needed features/buttons.

Production build 0.71.5 2024