April 2, 2020
Estimated Post Reading Time ~

Richtext in multifield widget

When Developing a custom component having a multifield widget with RTE. Adding items to the multifield work fine but when try to delete Or after opening & adding richtext fields from second time onwards the dialog will not close with clicking OK.

Possible Options
Use textfield instead of a richtext Or try not to use a richtext in a multifield.
If richtext in a multifield is required then follow below and verify in your development environment.
Overlay /libs/cq/ui/widgets/source/widgets/form/RichText.js
At the overlayed file for the method, syncValue (Line 910) replace [1] with [2].

[1] this.el.dom.value = html;
[2] if(this.el.dom){this.el.dom.value = html;}


By aem4beginner

No comments:

Post a Comment

If you have any doubts or questions, please let us know.