Closed emanuelbsilva closed 8 years ago
Quill's clipboard is designed to match input visually. Paragraph tags by default have bottom margin to look like two lines, so Quill interprets them as such. You can customize this if desired: https://quilljs.com/docs/modules/clipboard/
In case anybody else runs into this issue, here's the new link of the clipboard module https://quilljs.com/docs/modules/clipboard/
Thanks @juliantejera I updated my link as well for the skimmers out there
The
clipboard.convert
is adding an extra line break when ending with more than 1<p></br></p>
You can see the code pen i made: http://codepen.io/emanuelbsilva/pen/JXqxYY.
In that scenario when converting:
<p>test</p><p><br></p>
is returningtest\n\n
, which is correct. But when converting<p>test</p><p><br></p><p></br></p>
is returningtest\n\n\n\n
, but should returntest\n\n\n
.