The API reference is a Work in Progress and will be continuously improved and extended. We'd love to hear your feedback in our documentation repository.
Home > @edtr-io/store > isDocumentEmpty
isDocumentEmpty() function
Checks whether the given document is empty
Signature:export declare function isDocumentEmpty(
doc: DocumentState | null,
plugin: EditorPlugin | null
): boolean
Parameters
Parameter | Type | Description |
---|---|---|
doc | DocumentState | null | The document |
plugin | EditorPlugin | null | The plugin |
boolean
True
if the specified document is empty