Skip to content

Commit

Permalink
LIB-667 Filter Restore data-align and add figure classes
Browse files Browse the repository at this point in the history
  • Loading branch information
camilocodes committed Nov 27, 2024
1 parent 48a1ae9 commit bc7f377
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -566,8 +566,8 @@ private function swapImg($html) {
$uuid = $media->uuid();
// Build replacement <figure>
$figure = "
<figure class='mediawiki-figure'>
<drupal-media data-entity-type='media' data-view-mode='colorbox_smr_linked_to_original' data-entity-uuid='$uuid'></drupal-media>
<figure class='mediawiki-figure caption caption-drupal-media image-style align-right'>
<drupal-media data-align='right' data-entity-type='media' data-view-mode='colorbox_smr_linked_to_original' data-entity-uuid='$uuid'></drupal-media>
<figcaption>$caption</figcaption>
</figure>
";
Expand Down

0 comments on commit bc7f377

Please sign in to comment.