Skip to content

Inplace editing of core text component broken after upgrading forms components to 3.0.x #1371

@samueljdel

Description

@samueljdel

We recently upgraded forms components from 2.0.90 to 3.0.50. After upgrade we noticed that upgrading forms components broke the inplace editing functionality of the core Text component. The post call also has the formatting stripped. This works fine on 2.0.90

Expected Behaviour

Inplace editing of Text component shows toolbar and doesn't remove formatting when inplace editing is active and the cursor is clicked outside the component.

Actual Behaviour

Inplace editing of Text component doesn't show toolbar and removes formatting when inplace editing is active and the cursor is clicked outside the component.

Reproduce Scenario (including but not limited to)

This can be observed on a new repo or any existing repo with forms by upgrading forms to 3.0.44 - 3.0.52 with core components 2.24.6 or above

Steps to Reproduce

Add core Text component to any page and author it using dialog normally with some formatting. Select the component and click on the edit icon for inplace editing. Click outside the component and all formatting present in the component is removed

Platform and Version

AEM cloud environments and AEM cloud SDK

AEM Version (mention the exact version in case of cloud SDK)

AEM Cloud SDK(tested on AEM SDK v2024.5.16461.20240524T172309Z-240400 and above) with core components 2.24.6 or above

AEM Forms Version

AEM Forms 3.0.48 and above(could occur in previous 3.0.x versions)

Sample Code that illustrates the problem

Happens on default generated core Text component

Logs taken while reproducing problem

No logs available attached HAR file of the post request
text component inplace editing issue.json

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions