Fixed embedding of small media versions
authorMarcel Werk <burntime@woltlab.com>
Wed, 7 Sep 2016 13:06:20 +0000 (15:06 +0200)
committerMarcel Werk <burntime@woltlab.com>
Wed, 7 Sep 2016 13:09:28 +0000 (15:09 +0200)
wcfsetup/install/files/js/WoltLabSuite/Core/Media/Manager/Editor.js

index 5f50d7a14938fc83adb08e42f5e0087d95576597..d37e4341649abf6fa417405cfad2f30917347cd1 100644 (file)
@@ -281,7 +281,7 @@ define(['Core', 'Dictionary', 'Dom/Traverse', 'Language', 'Ui/Dialog', 'WoltLabS
                                        link = item[thumbnailSize + 'ThumbnailLink'];
                                }
                                
-                               this._options.editor.insert.html('<img src="' + item.link + '" class="woltlabSuiteMedia" data-media-id="' + item.mediaID + '" data-media-size="' + thumbnailSize + '">');
+                               this._options.editor.insert.html('<img src="' + link + '" class="woltlabSuiteMedia" data-media-id="' + item.mediaID + '" data-media-size="' + thumbnailSize + '">');
                        }
                        else {
                                this._options.editor.insert.text("[wsm='" + item.mediaID + "'][/wsm]");