Skip to content

Commit

Permalink
Fix: empty state check
Browse files Browse the repository at this point in the history
  • Loading branch information
awcodes committed Dec 22, 2023
1 parent d4778a3 commit bcafdae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TiptapEditor.php
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,6 @@ public function getGridLayouts(): array

private function isStateEmpty(string|array|null $state): bool
{
return tiptap_converter()->asText($state) === '';
return tiptap_converter()->asHtml($state) === '<p></p>';
}
}

0 comments on commit bcafdae

Please sign in to comment.