Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
See #2931790: Consistent media alignment handling for background.
This is the server-side part that attacks media tags during content filtering and asserts that all various kinds of alignment is aggregated to the media token $tag_info['fields']['alignment']
setting and proper alignment css classes added to the media container on content output.
Proposed resolution
This scans the $tag_info
array for various alignment methods (inline style, 'align' attribute) and replaces these with alignment setting and class.
Comment | File | Size | Author |
---|---|---|---|
#2 | media-2941608-aggregate-alignment-token-filtering-2.patch | 13.78 KB | kaare |
|
Comments
Comment #2
kaareAnd here is the patch.
Comment #3
joseph.olstadComment #5
joseph.olstad