pimcore icon indicating copy to clipboard operation
pimcore copied to clipboard

[Bug]: Focusing DataObject WYSIWYGs marks them dirty and thus breaks inheritance on save

Open podarcis opened this issue 1 year ago • 1 comments

Pimcore version

11.1.6.1, 11.2.2; with TinyMCE

Steps to reproduce

  1. Open a DataObject that inherits WYSIWYG content from parent object or variant (Pimcore demo: /Product Data/Cars/bmw/335/berline)
  2. Confirm the WYSIWYG field is correctly displayed "as inherited" (green triangle and gray background) (Pimcore demo: WYSIWYG field Description)
  3. Click into the field, so that the field gets input focus and displays the WYSIWYG-Toolbar.
  4. Leave/blur the input focus without actually editing the field by clicking on any other area in the DataObject layout.
  5. Notice the WYSIWYG field now isn't displayed "as inherited" anymore but has a copy of the parent's data.
  6. Click Save & Publish and 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.

podarcis avatar Apr 02 '24 15:04 podarcis

Additional info: Earlier Pimcore versions (<11) with CKEditor did not behave this way.

podarcis avatar Apr 03 '24 08:04 podarcis