We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
getSemanticHTML() returns <p></p> when editor is blank/empty. It should return a blank/empty string instead.
getSemanticHTML()
<p></p>
Demo to reproduce issue
<link rel="stylesheet" href="node_modules/quill/dist/quill.snow.css" /> <style> textarea, #my-editor-container { height: 50%; width: 50%; } </style> <textarea></textarea> <div id="my-editor-container"> <div id="my-editor"></div> </div> <script src="node_modules/quill/dist/quill.js"></script> <script> const myEditor = new Quill('#my-editor', { theme: 'snow', }); myEditor.on('text-change', myFunction); myFunction(); function myFunction() { let myEditorText = myEditor.getSemanticHTML(); document.querySelector('textarea').value = myEditorText; } </script>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
getSemanticHTML()
returns<p></p>
when editor is blank/empty. It should return a blank/empty string instead.Demo to reproduce issue
The text was updated successfully, but these errors were encountered: