AEM 65 - Touch UI RTE (Rich Text Editor) Dialog Color Picker Plugin - Throwing Handlebars.compile error in XF pages | Community
Skip to main content
VeenaVikraman
New Participant
Jan 7, 2021 12:56 PM UTC
Solved

AEM 65 - Touch UI RTE (Rich Text Editor) Dialog Color Picker Plugin - Throwing Handlebars.compile error in XF pages

Hi Team

 

   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. Has anyone faced a similar issue ? Any help is appreciated

 

TIA
Veena

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Anudeep_Garnepudi
Anudeep_GarnepudiAccepted solution
New Participant
Jan 8, 2021 8:40 AM UTC

Hi @veenavikraman 

Check /etc.clientlibs/clientlibs/granite/handlebars.js loading in your XF page or not.

12 replies

VeenaVikraman
New Participant
Jan 8, 2021 9:20 AM UTC

The color-picker doesn't work in Experience Fragment (XF) pages since the Handlebar js is not available there and underscore (clientlibs added as 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 ( thanks to my co-worker) 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 additional dependency to your clientlibs

 

Thanks

Veena

Translate
arunpatidar
New Participant
Jan 8, 2021 11:52 AM UTC
Thanks for sharing Veena
Translate
Arun Patidar
Anudeep_Garnepudi
Anudeep_GarnepudiAccepted solution
New Participant
Jan 8, 2021 8:40 AM UTC

Hi @veenavikraman 

Check /etc.clientlibs/clientlibs/granite/handlebars.js loading in your XF page or not.

Translate
New Participant
May 2, 2022 4:59 AM UTC

hi , it is not loading , what can i do ?

Translate
arunpatidar
New Participant
Jan 7, 2021 2:19 PM UTC
VeenaVikraman
New Participant
Jan 7, 2021 2:25 PM UTC
I will try this and let you know @arunpatidar. Thanks for quick reply.
Translate