diff --git a/forms/HtmlEditorField.php b/forms/HtmlEditorField.php index ef59d03fb..4ea7edbeb 100644 --- a/forms/HtmlEditorField.php +++ b/forms/HtmlEditorField.php @@ -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() {