Fixed auto width and height in markdown

This commit is contained in:
Matias Griese
2022-05-13 15:37:21 +03:00
parent 83a0515d95
commit bc4cf15f47

View File

@@ -459,7 +459,7 @@ trait ImageMediaTrait
public function width($value = 'auto')
{
if (!$value || $value === 'auto') {
$this->attributes['width'] = $this->get('width');
$this->attributes['width'] = null;
} else {
$this->attributes['width'] = $value;
}
@@ -483,7 +483,7 @@ trait ImageMediaTrait
public function height($value = 'auto')
{
if (!$value || $value === 'auto') {
$this->attributes['height'] = $this->get('height');
$this->attributes['height'] = null;
} else {
$this->attributes['height'] = $value;
}