OEmbed resize on correct attrs (fixes #1950)

This commit is contained in:
Ingo Schommer 2013-05-25 01:26:34 +02:00
parent 016368afdc
commit 4aafe47fbb

View File

@ -62,8 +62,8 @@
var content = jQuery(o.content);
content.find('.ss-htmleditorfield-file.embed').each(function() {
var el = jQuery(this);
var shortCode = '[embed width="' + el.data('width') + '"'
+ ' height="' + el.data('height') + '"'
var shortCode = '[embed width="' + el.attr('width') + '"'
+ ' height="' + el.attr('height') + '"'
+ ' class="' + el.data('cssclass') + '"'
+ ' thumbnail="' + el.data('thumbnail') + '"'
+ ']' + el.data('url')