Drupal Association members fund grants that make connections all over the world.
Posting this after initial discussions with quicksketch in
As noted in that issue the commit inbroke the ability of media images to be resized in a WYSIWYG. Custom width/height attributes added to the image (e.g. click and drag resize) are now always overridden by the media module.
After that commit (i.e. as part of rc3) the output from media_token_to_markup() returns an render $element as:
array( '#theme' => 'image_style', ... '#width' => 1000, '#height' => 850, '#attributes' => array( 'height' => 85, 'width' => 100, ), );
Where 1000x850 is the original image size and 100x85 is the resized attributes. When the image comes to be rendered 1000x850 take precedent and override the attributes.
Prior to rc3 the #width and #height properties we not added to the $element, thus allowing the height and width values in #attributes to take effect.
Question is, how to work around this, or how to overcome it?
|#76||media.wysiwyg-integration.1411340-76.patch||2.06 KB||Yaron Tal|
FAILED: [[SimpleTest]]: [MySQL] 73 pass(es), 17 fail(s), and 13 exception(s). View