Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Cms 2.1.4 Update released for Drupal core (2.1.4)! Release: Drupal 12.0.0-alpha1 First alpha version released for Drupal core (12.0.0-alpha1). Release: PhotoSwipe - Responsive JavaScript Modal Image Gallery 5.0.9 Minor update available for module photoswipe (5.0.9). Release: AI (Artificial Intelligence) 1.4.8 Minor update available for module ai (1.4.8). Release: AI (Artificial Intelligence) 1.3.13 Minor update available for module ai (1.3.13). Release: Moderated Content Bulk Publish 2.0.53 Minor update available for module moderated_content_bulk_publish (2.0.53). Release: Mailchimp 2.2.9 Minor update available for module mailchimp (2.2.9). Release: Mailchimp 3.1.4 Minor update available for module mailchimp (3.1.4). Module Revived: Image field to media 3.0.2 Module image_field_to_media updated after 13 months of inactivity (3.0.2). Security Coverage: Analyze PostHog Module analyze_posthog now has official Drupal security advisory coverage.

Diff Plus

487 sites Security covered Drupal 10–11
View on drupal.org

Diff Plus offers enhanced diffing functionality for Drupal, including user-configurable options and new layout plugins like Visual Inline and Raw HTML. It aims to provide a better editorial experience by improving how content changes are displayed, especially for complex elements like images and interactive components.

This module provides opinionated extensions to the diff module that can be developed at a higher velocity than the base module.

Configuration

This module takes a user-centric approach by optionally allowing for per-user customization of most configuration items. Site owners may (and are encouraged to) grant roles the permission to customize diff plus configurations. Since not everyone is identical, users should be able to optimize their own editorial experience.

Diff Layout Plugins

Presently, a couple new diff layout plugin types are available, Visual Inline (HTML5) and Raw HTML.

The Visual Inline (HTML5) Layout

This is an attempt at improving the Visual Inline layout of the Diff module. It turns off HTMLPurifier for source content and greatly expands the HTML elements that are allowed to be processed by the upstream caxy/php-htmldiff library. See https://www.drupal.org/project/diff_plus/issues/3336511 for progress on beautiful and intuitive <img>and <picture> diffs!

The Raw HTML Diff Layout

Sometimes, changes cannot be sufficiently described by any existing diff layouts.

  • The Visual layout has problems rendering certain elements such as pictures, buttons, etc...
  • Interactive elements that require javascript to function such as accordions, tabs, carousels, etc, often render...strangely.
  • Certain non-visual information added via Layout Builder Overrides may have zero visibility with any of the existing Diff layouts. For example, what about a user-configurable ID on a section?

While there may be more end-user-friendly ways of tackling these problems, the most simple and direct approach is to simply provide a diff of the rendered HTML itself.

Have a suggestion?

Feel free to open an issue. Be sure to provide your use case and an actionable plan.

Depends on

Dependencies of the latest stable release

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Jun 2026
Latest release
2 months ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Active

Releases

Version Type Core Release date
1.2.0 Stable 10–11 Jun 10, 2026
1.2.x-dev Dev 10–11 Jun 4, 2026