[TASK] Style Editor Pre-populate Form with Contentlet `styleProperties`
Description
The "Style Editor" feature, integrated into the "Universal Visual Editor (UVE)," enables users to dynamically modify specific attributes, referred to as styleProperties, for contentlets via an interactive form. The objective of this task is to ensure that upon loading this styleProperties editing form in UVE, it is automatically pre-populated with the current values of the styleProperties associated with the contentlet being edited. This is essential to reflect any existing configurations the contentlet might already possess and to keep the rendered form synchronized with the contentlet's data.
Acceptance Criteria
- [ ] When the Style Editor form is opened for a
contentletin the UVE, all relevant input fields within the form must display the current, saved values of thestylePropertiesfrom thatcontentlet. - [ ] If a
contentletdoes not have a specificstylePropertyconfigured, the corresponding form field should display its default value or remain empty, as appropriate for the data type. - [ ] The initial state of the form must accurately reflect the
stylePropertiesconfiguration of thecontentletbeing viewed/edited, ensuring a synchronized user experience.
Priority
None
Additional Context
This task is part of the ongoing development for the "Style Editor" feature.,The forms presented for styleProperties are dynamic, meaning their structure and available fields can change based on context or other selections within UVE. The pre-population logic must account for this dynamic nature.,The contentlet's styleProperties can already have existing values saved from previous edits, which need to be loaded.
PRs linked to this issue
- chore(style-editor): Enhance style editor form to utilize contentlet style properties by @KevinDavilaDotCMS
Passed QA
- dotCMS docker image: [
dotcms/dotcms:trunk]
Video
https://github.com/user-attachments/assets/01489a28-3b57-4d43-862f-f5d4e5d3d01a