The editor initializes with two paragraphs (<p></p><p></p> instead of <p></p>) in some cases. I suspect it happens when the underlying field is NULL instead of an empty string, e.g. on a fresh object.
This results in a superfluous paragraphs in case the user did not remove it.
Steps to reproduce
- Open Pimcore demo (either platform version 2024.x or 2025.x).
- Create a new object that contains a WYSIWYG.
- Set focus into the field.
- Confirm by moving cursor (with key up/down) that there are two vertical places for the cursor to be. Also check the sources using toolbar "HTML Edit" that there are now two paragraphs.
The editor initializes with two paragraphs (
<p></p><p></p>instead of<p></p>) in some cases. I suspect it happens when the underlying field is NULL instead of an empty string, e.g. on a fresh object.This results in a superfluous paragraphs in case the user did not remove it.
Steps to reproduce