diff --git a/packages/forms/src/Components/RichEditor/RichContentRenderer.php b/packages/forms/src/Components/RichEditor/RichContentRenderer.php index edb11588be..c57347faa1 100644 --- a/packages/forms/src/Components/RichEditor/RichContentRenderer.php +++ b/packages/forms/src/Components/RichEditor/RichContentRenderer.php @@ -355,6 +355,10 @@ class RichContentRenderer implements Htmlable */ public function toJson(bool $decoded = false): string | array { + if (empty($this->content)) { + return $decoded ? [] : ''; + } + $editor = $this->getEditor(); if ($decoded) {