Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CKEditor 5 strips out unordered list tags if field contains multiple UL classes #17694

Open
steveb510 opened this issue Dec 26, 2024 · 0 comments
Labels
type:bug This issue reports a buggy (incorrect) behavior.

Comments

@steveb510
Copy link

📝 Provide detailed reproduction steps (if any)

  1. A text field contains consecutive unordered lists, each with a unique class so it can be styled differently in CSS.
  2. HTML validator confirms that it is valid code.

✔️ Expected result

That all ul tags are retained as coded

❌ Actual result

CKEditor5 strips out all but the first class, so items that should be styled as class2, class3, etc. are now styled as class1. See attached.

❓ Possible solution

Only solution is to disable CKEditor for fields that contain consecutive unordered lists. This is what I have done, so it's not a critical issue, but it would be nice to get a WYSIWYG preview of the field.

📃 Other details

  • Browser: Firefox
  • OS: Windows 11
  • First affected CKEditor version: 5
  • Installed CKEditor plugins: None

I'm using CKEditor5 in Backdrop CMS, which is a fork of Drupal 7.

I've attached two code samples, one showing the expected result and the other showing the actual result.

expected-result.txt
actual-result.txt


If you'd like to see this fixed sooner, add a 👍 reaction to this post.

@steveb510 steveb510 added the type:bug This issue reports a buggy (incorrect) behavior. label Dec 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug This issue reports a buggy (incorrect) behavior.
Projects
None yet
Development

No branches or pull requests

1 participant