Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

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

Veena_Vikram
Community Advisor
Community Advisor

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

1 Accepted Solution
Anudeep_Garnepudi
Correct answer by
Community Advisor
Community Advisor

Hi @Veena_Vikram 

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

View solution in original post

7 Replies
Veena_Vikram
Community Advisor
Community Advisor
I will try this and let you know @Arun_Patidar. Thanks for quick reply.
Veena_Vikram
Community Advisor
Community Advisor
@Arun_Patidar The plugin you provided is also having the same issue. It is not working in Experience Fragment pages. Throwing the same Handlebars.compile issue.
Anudeep_Garnepudi
Correct answer by
Community Advisor
Community Advisor

Hi @Veena_Vikram 

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

View solution in original post

Veena_Vikram
Community Advisor
Community Advisor

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