You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found out that quill editor strips out html tags if there is new line character inside.
Steps for Reproduction
I have HTML: <p><span> </span>Test</p>
and <p><span> \r\n</span>Test</p>
\r\n are non printable characters
Quill converts first html to:
---Test
where space is here shown as '-'.
And second one to:
Test
Which does not have any space before Test.
Platforms:
Browser is Edge version: 126.0.2592.61, OS is Windows 11
Version:
Quill.version = '2.0.2'
Workaround:
The workaround is to remove new line character to each so: htmlString = htmlString.replaceAll(" \n", " ").replaceAll("\u00a0\n", "\u00a0")
The text was updated successfully, but these errors were encountered:
I found out that quill editor strips out html tags if there is new line character inside.
Steps for Reproduction
I have HTML:
<p><span> </span>Test</p>
and
<p><span> \r\n</span>Test</p>
\r\n are non printable characters
Quill converts first html to:
---Test
where space is here shown as '-'.
And second one to:
Test
Which does not have any space before Test.
Platforms:
Browser is Edge version: 126.0.2592.61, OS is Windows 11
Version:
Quill.version = '2.0.2'
Workaround:
The workaround is to remove new line character to each so:
htmlString = htmlString.replaceAll(" \n", " ").replaceAll("\u00a0\n", "\u00a0")
The text was updated successfully, but these errors were encountered: