core icon indicating copy to clipboard operation
core copied to clipboard

[TASK] Style Editor Pre-populate Form with Contentlet `styleProperties`

Open KevinDavilaDotCMS opened this issue 10 months ago • 2 comments

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 contentlet in the UVE, all relevant input fields within the form must display the current, saved values of the styleProperties from that contentlet.
  • [ ] If a contentlet does not have a specific styleProperty configured, 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 styleProperties configuration of the contentlet being 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.

KevinDavilaDotCMS avatar Jan 07 '26 04:01 KevinDavilaDotCMS

Passed QA

  • dotCMS docker image: [dotcms/dotcms:trunk]

Video

https://github.com/user-attachments/assets/01489a28-3b57-4d43-862f-f5d4e5d3d01a

ihoffmann-dot avatar Jan 27 '26 20:01 ihoffmann-dot