pimcore
pimcore copied to clipboard
[Bug]: Focusing DataObject WYSIWYGs marks them dirty and thus breaks inheritance on save
Pimcore version
11.1.6.1, 11.2.2; with TinyMCE
Steps to reproduce
- Open a DataObject that inherits WYSIWYG content from parent object or variant (Pimcore demo:
/Product Data/Cars/bmw/335/berline) - Confirm the WYSIWYG field is correctly displayed "as inherited" (green triangle and gray background) (Pimcore demo: WYSIWYG field
Description) - Click into the field, so that the field gets input focus and displays the WYSIWYG-Toolbar.
- Leave/blur the input focus without actually editing the field by clicking on any other area in the DataObject layout.
- Notice the WYSIWYG field now isn't displayed "as inherited" anymore but has a copy of the parent's data.
- Click
Save & Publishand after that click reload to confirm the change has been persisted and effectively breaks inheritance.
Actual Behavior
Just by focusing (both keyboard tab-index or mouse click) the WYSIWYG is marked edited and the inherited WYSIWYG field content from the parent is duplicated and persisted on save.
Expected Behavior
Behavior like with other field types (Input, Textarea, Select, Multiselect, ...): Only mark dirty when content is actually edited/modified.
Additional info: Earlier Pimcore versions (<11) with CKEditor did not behave this way.