diff --git a/js/media.popups.js b/js/media.popups.js index 2c8c775f2ea16cff1830bcccc6d1ee7f13fcb706..49f56c0eec682ef48ed0736cd363fb608811ee59 100644 --- a/js/media.popups.js +++ b/js/media.popups.js @@ -213,6 +213,7 @@ Drupal.media.popups.mediaStyleSelector = function (mediaFile, onSelect, options) dialogOptions.buttons[ok] = function () { // Find the current file selection. var formattedMedia = this.contentWindow.Drupal.media.formatForm.getFormattedMedia(); + formattedMedia.options = $.extend({}, mediaFile.attributes, formattedMedia.options); // Alert the user if a selection has yet to be made. if (!formattedMedia) {