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

Empty content #807

Closed
peter-chow opened this issue Jul 14, 2021 · 3 comments
Closed

Empty content #807

peter-chow opened this issue Jul 14, 2021 · 3 comments
Milestone

Comments

@peter-chow
Copy link

When the editor has no content, it still has an underlying markup in the form (using the default settings): <p><br></p>.

It would be ideal if the markup is an empty string to reflect what is observed in the editor by the user.

Setting the property, defaultTag, to an empty string seems to break the editor.

@JiHong88 JiHong88 added this to the 2.42.0 milestone Jul 15, 2021
JiHong88 added a commit that referenced this issue Jul 16, 2021
@peter-chow
Copy link
Author

Hi @JiHong88,

I'm not sure that the referenced commit fulfills the enhancement. It looks like it prevents the defaultTag from being an empty string, but will there also be an update that makes the markup an empty string if there is no content in the editor?

@JiHong88
Copy link
Owner

@peter-chow It is currently structurally impossible to remove all tags when there is no content in the editor.
The editor should always have a default format.

@JiHong88
Copy link
Owner

The 2.42.0 version has been updated.
If this issue has not been resolved, please reopen this issue.
Thank you.

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

No branches or pull requests

2 participants