Skip to content

How to detect if there is an empty content #2812

Answered by 12joan
aron-aletiq asked this question in Q&A
Discussion options

You must be logged in to vote

You can use the isEditorEmpty function for this, provided that its definition of empty is what you're looking for:

/**
 * Whether the editor is empty. An editor is empty if it has only one empty element.
 */

Nice Haskell shirt, by the way! λ

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@aron-aletiq
Comment options

Answer selected by aron-aletiq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants