Colorpicker problem. Script not loading
Permalink
Hi
Has anyone encountered this error on Javascript.
The colorpicker widget does not load because I think it didn't register the `spectrum` script.
Has anyone encountered this error on Javascript.
Uncaught TypeError: $(...).spectrum is not a function
The colorpicker widget does not load because I think it didn't register the `spectrum` script.
Hi BreakfastStudio and gauravrajdeo,
concrete5 uses the Spectrum color picker.
When using the color picker widget, the Spectrum color picker CSS and JS assets are automatically loaded by concrete5.
If you are calling the spectrum() function directly, you are responsible for loading the Spectrum CSS and JS assets. This can be done by requiring these assets from concrete5.
concrete5 uses the Spectrum color picker.
When using the color picker widget, the Spectrum color picker CSS and JS assets are automatically loaded by concrete5.
If you are calling the spectrum() function directly, you are responsible for loading the Spectrum CSS and JS assets. This can be done by requiring these assets from concrete5.
$this->requireAsset('core/colorpicker');
Did you got this solved ?
As I'm also getting the same error.