Squire icon indicating copy to clipboard operation
Squire copied to clipboard

Html gets reformatted on Undo

Open paulflo150 opened this issue 11 months ago • 1 comments

Make a change to the html and then press CTRL+Z. The original html gets completely reformatted where several <p><br></p> are being inserted.

Is there any way to return to the original html, or how would I go about removing these <p><br></p> nodes?

This is my html: <p><b>Chapter 1</b> <br />Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p><p><b>Chapter 2</b> <br />Pretium viverra suspendisse potenti nullam. Rutrum quisque non tellus orci ac auctor augue mauris augue. Sed egestas egestas fringilla phasellus faucibus.</p><p><b>Chapter 3</b> <br />Velit aliquet sagittis id consectetur purus. Sed ullamcorper morbi tincidunt ornare massa eget egestas purus. Elementum eu facilisis sed odio morbi quis commodo odio aenean.</p>

Here is the stacblitz: https://stackblitz.com/edit/web-platform-altctd

https://github.com/fastmail/Squire/assets/8136504/83a369f5-9119-4932-83e4-db7a536cf885

Thanks!

paulflo150 avatar Mar 26 '24 04:03 paulflo150