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
When the text is aligned to the center and two new lines are inserted before proceeding to write text, the generated output doesn't include the <br> tag on the middle line.
It instead adds an empty paragraph between the two lines of text, which doesn't match the Quill output.
The second line, even though it doesn't contain any text, should still render in order to space out the two lines of text correctly.
Additional context
I managed to pinpoint the issue to the align implementation, given that if I remove the {"align":"center"} from the empty line, it renders correctly as <p><br><p>.
I believe the <br> tag might be escaped within the wrapElement call that is made from the Align listener.
The text was updated successfully, but these errors were encountered:
Describe the bug
When the text is aligned to the center and two new lines are inserted before proceeding to write text, the generated output doesn't include the
<br>
tag on the middle line.It instead adds an empty paragraph between the two lines of text, which doesn't match the Quill output.
The delta code which generates the problem
This generates the following output:
The expected HTML output the delta should produce
Expected behavior
The second line, even though it doesn't contain any text, should still render in order to space out the two lines of text correctly.
Additional context
I managed to pinpoint the issue to the
align
implementation, given that if I remove the{"align":"center"}
from the empty line, it renders correctly as<p><br><p>
.I believe the
<br>
tag might be escaped within thewrapElement
call that is made from the Align listener.The text was updated successfully, but these errors were encountered: