BUG: Intialized custom color picker
Question
GrapesJS version
- I confirm to use the latest version of GrapesJS
What browser are you using?
Chrome
Reproducible demo link
Describe the bug
editor.getModel().initBaseColorPicker(DomElement, { /* spectrum options */ });
after initailization when the palete opens i want to set a color to it ? @artf
Code of Conduct
- I agree to follow this project's Code of Conduct
Answers (2)
This looks interesting. I wouldn't mind taking a crack at it.
I figured it out.
var configEl=editor.getModel().initBaseColorPicker(DomElement, { /* spectrum options */ });
configEl.spectrum("set", "your color");
Related Questions and Answers
Continue research with similar issue discussions.
Issue #6685
BUG: Custom component styles are not applied after deletion and re-addition
GrapesJS version [x] I confirm to use the latest version of GrapesJS What browser are you using? Chrome v143.0.7499.193 Reproducible demo l...
Issue #5442
BUG: After applying the text color not able to set the background color
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? chrome Reproducible demo link https://jsfi...
Issue #6102
Traits Not Displayed After Reloading Editor for Custom Component
GrapesJS version[X] I confirm to use the latest version of GrapesJSWhat browser are you using? Chrome 91VReproducible demo link https://jsf...
Issue #6485
BUG: showSelectionPalette doesnt work with custom color picker
GrapesJS version [x] I confirm to use the latest version of GrapesJS What browser are you using? Chrome Reproducible demo link https://code...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.