Merge pull request #1997 from chillu/pulls/1950-oembed-resize

OEmbed resize on correct attrs (fixes #1950)
This commit is contained in:
Sean Harvey 2013-05-24 16:35:44 -07:00
commit 53115d93c6

View File

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