Expand my Community achievements bar.

SOLVED

Unable to add colour picker in AEM 6.5.16

Avatar

Level 9

I am trying to add color picket in AEM 6.5.16. I am following this article http://aemlab.blogspot.com/2019/07/aem-rte-custom-plugins-1.html to setup color picker but I get empty color widget with below error,

 

Mario248_0-1683279176712.png

 

Uncaught ReferenceError: _ is not defined

Mario248_1-1683279599747.png

 

Mario248_2-1683279667145.png

 

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Try changing dependency from underscore to lodash.underscore

 

There are discussion about it in the blogs comment section



Arun Patidar

View solution in original post

5 Replies

Avatar

Correct answer by
Community Advisor

Try changing dependency from underscore to lodash.underscore

 

There are discussion about it in the blogs comment section



Arun Patidar

Avatar

Level 1

Hi, 

I also got same error, Can you please tell me where you have changed this 

lodash.underscore.

Avatar

Level 1

Hi Arun, 

where we need to change the dependency from underscore to lodash.underscore.

Avatar

Community Advisor

you need to update this in the color picker clientibs.

e.g./apps/commons/rte/plugins/clientlibs/ 



Arun Patidar