Editor empty value contains formattings #4843
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
I'm submitting a ... (check one with "x")
Current behavior
the value is:
<p><strong><span class="ql-cursor"></span></strong></p>
Expected behavior
Value should be null.
Suggestion:
let text = this.quill.getText().trim();
if (!text) {
html = null;
}
Many Thanks!
Minimal reproduction of the problem with instructions
What is the motivation / use case for changing the behavior?
Please tell us about your environment:
Language: [all | TypeScript X.X | ES6/7 | ES5]
Node (for AoT issues):
node --version
=The text was updated successfully, but these errors were encountered: