Needs review
Project:
Diff
Version:
2.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
13 Aug 2020 at 22:45 UTC
Updated:
21 Oct 2026 at 10:01 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
mihai11 commentedI have created a patch for you problem. A new configuration has been added on General settings form under FIELD BASED LAYOUT SETTINGS.
Comment #3
bbu23Comment #4
daddison commentedThe patch applied cleanly for me and works as expected.
Comment #5
gallegosj commentedAlso confirming, patch at #2 worked for me as expected.
Comment #6
charlie1volley commentedApplied successfully and works as designed. Thanks for a great module and the patch at #2 to add this very useful option.
Comment #7
yepaThe patch applied cleanly on Drupal 8.9.8
the code review did not show any errors.
On the config page (admin/config/content/diff/general), we can now choose the default filter:

The configuration is correctly exported:

It works as expected and it's much appreciated by editors (UX).
Comment #8
gallegosj commentedWhen can we expect this to be ported over?
Comment #9
dbielke1986 commentedWould be great to have this feature in a official release
Comment #10
bkosborneSeems important to get this in, especially now that CKEditor 5 collapses all HTML into a single line, making the "raw" comparison method pretty useless. See #3351660: [DrupalHtmlEngine] CKEditor 5 saves content as single line HTML making revision diffing impossible
Comment #11
acbramley commentedThanks for the work on this one. I've recently taken up maintainership of this project and am looking through the RTBC issues.
I agree here that having the Raw as the default is undesirable.
To get this in, I'll need the patch applied against the latest 8.x-1.x code in an MR with tests.
Thanks!
Comment #13
dbielke1986 commentedJust created a fork and an MR with the changes of #2
Please review and test.
Comment #14
acbramley commentedThanks for that, we still need automated tests as well as some phpstan fixes.
Comment #15
pahles commentedI tried updating the module today but this patch no longer gets applied. Composer just hangs. It works when I revert to 8.x-1.1 but cannot be applied in 8x-1.2 or 8x-1.3.
Comment #16
jeroentComment #19
jeroentI created a new MR for version 2.x and added test coverage.
Comment #20
jeroentFailing test-only run: https://git.drupalcode.org/issue/diff-3165141/-/jobs/2082920
Comment #21
jeroentComment #22
gbyteWorks as advertised, code looks clean.
Comment #23
heddnNeeds a rebase
Comment #24
jeroentIn rebased the -dev branch to the MR.
Comment #25
heddnPosted feedback on MR.
Comment #26
jeroent@heddn,
I can't find any feedback on the MR?
Comment #27
heddnOops. Posted now.
Comment #28
jeroentComment #30
timohuismanThis patch contains a snapshot of the MR so it can be safely used with composer-patches.