Needs review
Project:
Diff
Version:
2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
30 Sep 2026 at 17:00 UTC
Updated:
30 Sep 2026 at 21:12 UTC
Jump to comment: Most recent
CKEditor 5 saves content as a single, minified HTML string without line breaks (as tracked in Core issues #3351660 and #3361617). Because we cannot rely on a Core-level database formatting fix anytime soon, we must handle this formatting within the Diff module to prevent two major regressions:
Format the HTML and optimizes the engines:
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 #3
cballenar commentedMR 182 submitted with the proposed items as separate commits for easy review.
Comment #4
cballenar commentedI've pushed an amended commit that resolves the original HTML diff spacing issues, along with fixing the linting and static analysis complaints.
Note: the pipeline will likely show as failed due to out-of-scope Drupal 11 deprecations. I've left these out, but wanted to flag why the pipeline won't be fully green. The MR is otherwise ready for review!