When using the getHTML() method in toast-ui/editor, it consistently returns
instead of null when the editor is empty.
To Reproduce
Steps to reproduce the behavior:
Initialize toast-ui/editor.
Use the getHTML() method when the editor is empty.
See that "
"
is returned instead of null.
Expected behavior
The getHTML() method should return null when the editor is empty just like getMarkdown().
Screenshots
Additional context
This bug affects the behavior of the getHTML() method specifically when the editor is empty. It may impact applications relying on the returned value to determine whether the editor content is empty or not.
Describe the bug
When using the getHTML() method in toast-ui/editor, it consistently returns
instead of null when the editor is empty.To Reproduce
Steps to reproduce the behavior:
"
is returned instead of null.Expected behavior
The getHTML() method should return null when the editor is empty just like getMarkdown().
Screenshots
Additional context
This bug affects the behavior of the getHTML() method specifically when the editor is empty. It may impact applications relying on the returned value to determine whether the editor content is empty or not.