summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkhamash2017-05-11 19:38:58 (GMT)
committerolstjos2017-05-11 19:38:58 (GMT)
commit89a787028e4448b1da1be61dc61afb9bab2e9a24 (patch)
treefc7b24a94661157f425e498b321e044f78828ea6
parent197152a802e465aba949baaf6a955527ab5fa7f5 (diff)
Issue #2148641 by drupal_was_my_past, mkhamash, gmclelland: WYSIWYG-inserted images lose ckeditor styles
-rw-r--r--js/media.popups.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/js/media.popups.js b/js/media.popups.js
index 2c8c775..49f56c0 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) {