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
Testing internally, by removing this line, does indeed break the cursor as expected. (but we get lovely clean HTML)
But unfortunately this is affecting our output from Squire with it adding in a bunch of <br>s and extra whitespace in :(
HTML Before:
<pclass="MsoNormal">Test</p>
HTML After:
<pclass="MsoNormal">Test<br></p>
How are other people handling this? Should we re-process the HTML afterwards and strip these out? Are we maybe doing something dumb with the way we get the HTML back from Squire? (listening to the input event and using .getHTML())
The text was updated successfully, but these errors were encountered:
@mattisdada I have the same issue. Do you mind sharing your solution? Stripping them out afterwards seems to be unreliable as well, since in my case those could be user generated line breaks.
@mattisdada I have the same issue. Do you mind sharing your solution? Stripping them out afterwards seems to be unreliable as well, since in my case those could be user generated line breaks.
I'm really sorry, no longer work at the company that I was doing this project with and I honestly cannot recall if we ever found a solution, or if we did, what that solution was 😅 . Sorry about that!
Hi,
Context: We're using Squire as a HTML editor primarily for HTML that is generated by Outlook originally.
We've noticed that for
<p>
elements (and others) that Squire inserts a<br>
at the end, it's this line: https://github.com/neilj/Squire/blob/8ff042dd22f34a50e79e122bc443e9227035ebaa/source/Node.js#L277Testing internally, by removing this line, does indeed break the cursor as expected. (but we get lovely clean HTML)
But unfortunately this is affecting our output from Squire with it adding in a bunch of
<br>
s and extra whitespace in :(HTML Before:
HTML After:
How are other people handling this? Should we re-process the HTML afterwards and strip these out? Are we maybe doing something dumb with the way we get the HTML back from Squire? (listening to the
input
event and using.getHTML()
)The text was updated successfully, but these errors were encountered: