The current code calls

$element['#attributes']['class'][] = 'media-element';

which should be

$element['#attributes']['class'] .= 'media-element';

The attached code fixes that. Or should we check whether the variable is an array or a string?

CommentFileSizeAuthor
media_token_to_makrup.patch660 bytesjurgenhaas
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

deggertsen’s picture

Confirming that that patch fixes the issue.

Chris Matthews’s picture

Component: WYSIWYG integration » Code
Issue summary: View changes
Status: Active » Closed (outdated)

Closing this issue as outdated. However, if you think this issue is still important, please let us know and we will gladly re-open it for review.
sincerely,
- the Drupal Media Team