-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
Description
WYSIWYG fields that are empty (have no editorial content) are not persisted with NULL or empty string, but with an empty paragraph <p></p>. This complicates tests in templates or business logic because one does not only need to test for empty, but also for the possible value <p></p>.
For the TinyMCE implementation there has been a (temporary) fix that might relate to this issue: pimcore/admin-ui-classic-bundle#304
Steps to reproduce
- Create a class with a WYSIWYG and an DataObject instance.
- Edit the field, but finally empty its content (delete everything in it).
- Confirm in database, that the field is not stored as
NULLor'', but with<p></p>.
artjom-simon-arvato and cmann90