January 11, 2021
Estimated Post Reading Time ~

Touch UI RTE Dialog Color Picker Plugin - Throwing Handlebars.compile error in XF pages

Question:
We are using the Color Picker plugin (Refer ) developed and provided by Sreekanth. The plugin works fine in our pages, but while using the color-picker in the XF pages, it is not loading in the RTE and we are getting Handlebars.compile is not a function issue in the console.

Solution:
The color-picker doesn't work in Experience Fragment (XF) pages since the Handlebar js is not available there and underscore (clientlibs added as a dependency in the picker) doesn't have Handlebar.compile module. I was trying with handlebars as dependency all the time after reading it somewhere, but after some debugging, I could figure out that the dependency which had handlebar in AEM is cq.handlebars.

So anybody facing Handlebars.compile is not a function issue in the future, please add cq.handlebars as an additional dependency to your clientlibs

Source:
https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/aem-65-touch-ui-rte-rich-text-editor-dialog-color-picker-plugin/qaq-p/392705/comment-id/84334#


By aem4beginner

No comments:

Post a Comment

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