Which version of PlanetPress Connect have you installed?
Which HTML code you have inserted?
If you are inserting this HTML code when viewing the Snippet in Source mode?
If the Snippet does contain no HTML code the moment just before you insert the HTML code?
The reason why I am asking all these questions is because I cannot reproduce this behaviour when I execute the following steps in the PReS Connect version 2023.1 Designer application:
Create a new Print Template
Add a new HTML snippet by clicking with the right mouse button on the Snippets folder and selecting New Snippet > HTML file
View the snippet in Source mode
Press CTRL+A and then DELETE to remove the existing HTML code <p><br></p>
Insert the HTML code <div><h1>Hello World!</h1></div>
View the snippet in Design mode
View the snippet in Source mode to check the result
[Edited: Added an extra step after step 3 of the not able to reproduce steps]
A new Snippet contains <p><br></p> at the top from the start. I delete that. I insert my html code. I switch to Design view. <p><br></p> is reinserted at the top. Every time I do this.
Would it be possible for you to share the HTML code once sensitive data has been removed from it? Please try to keep the HTML code itself as accurate as possible.
Thank you for sharing the HTML code. I am able to reproduce it when insert the HTML code of a Positioned Box element while viewing the snippet in Source mode and switch from Source mode to Design mode and back to Source mode again.
I have reported the issue internally in the meanwhile [internal reference: SHARED-90557].
In case you’re using loadhtml() to fetch the snippet’s content, consider utilizing a selector to retrieve the desired content. Something like the following for example: