mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #1997 from chillu/pulls/1950-oembed-resize
OEmbed resize on correct attrs (fixes #1950)
This commit is contained in:
commit
53115d93c6
@ -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')
|
||||||
|
Loading…
Reference in New Issue
Block a user