Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getHTML() Method in Toast-UI/Editor Returns Unexpected Value When Editor is Empty #3236

Open
susheelahegde opened this issue Apr 7, 2024 · 1 comment
Labels

Comments

@susheelahegde
Copy link

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:

  1. Initialize toast-ui/editor.
  2. Use the getHTML() method when the editor is empty.
  3. See that "


    "
    is returned instead of null.

Expected behavior

The getHTML() method should return null when the editor is empty just like getMarkdown().

Screenshots

image

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.

@bacloud23
Copy link

I agree. Same for getMarkdown It grabs things from the HTML of the editor itself. Here in French language you see some values:

For me empty or not !

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants