mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX: Provide a default width and height of 100px for those endpoints that don't provide one.
This commit is contained in:
parent
1772355ef3
commit
30ecb9f531
@ -825,11 +825,11 @@ class HtmlEditorField_Embed extends HtmlEditorField_File {
|
||||
}
|
||||
|
||||
public function getWidth() {
|
||||
return $this->oembed->Width;
|
||||
return $this->oembed->Width ?: 100;
|
||||
}
|
||||
|
||||
public function getHeight() {
|
||||
return $this->oembed->Height;
|
||||
return $this->oembed->Height ?: 100;
|
||||
}
|
||||
|
||||
public function getPreview() {
|
||||
|
Loading…
Reference in New Issue
Block a user