diff --git a/plugins/media/library.js b/plugins/media/library.js index 1295ad5..d9403f5 100644 --- a/plugins/media/library.js +++ b/plugins/media/library.js @@ -90,15 +90,7 @@ * @return HTML of tag inside formattedMedia */ stripDivs: function (formattedMedia) { - // Check to see if the image tag has divs to strip - var stripped = null; - if ($(formattedMedia).is('img')) { - stripped = this.outerHTML($(formattedMedia)); - } else { - stripped = this.outerHTML($('img', $(formattedMedia))); - } - // This will fail if we pass the img tag without anything wrapping it, like we do when re-enabling ckeditor - return stripped; + return this.outerHTML($(formattedMedia));; }, /**