mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
OEmbed resize on correct attrs (fixes #1950)
This commit is contained in:
parent
016368afdc
commit
4aafe47fbb
@ -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')
|
||||
|
Loading…
x
Reference in New Issue
Block a user