Problem/Motivation

Currently it seems like some of the information provided by media_wysiwyg_token_to_markup(), which invokes theme_picture_formatter() isn't used to build the output.
This leads to missing attributes like css classes.

I'm not sure if this just applies to media_wysiwyg_token_to_markup() or for all the media / file entity output handling.

Proposed resolution

Check if $item has a class key and if so merge it into the attributes of $responsive_image.

Attention this likely changes the output on existing installations.

Remaining tasks

Reviews needed.

User interface changes

None.

API changes

None.

Data model changes

None.

CommentFileSizeAuthor
picture-media-css-classes-missing.patch827 bytesdas-peter

Comments

jelle_s’s picture

Status: Needs review » Fixed

Fixed in latest dev. Thanks for the patch!

  • Jelle_S committed 46b4af5 on 7.x-2.x authored by das-peter
    Issue #2539020 by das-peter: Media (WYSIWYG) / File entity css classes...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.