Tortu
Tortu

Reputation: 49

how can I add colorpicker on the default rich text editor of grapesjs to change font colors?

I'm going to change the font color using a color picker and I added it like this. but it's not working now. I think It's because the'rte.exec()' please help me how to change the font color. Thank you.enter image description here

Upvotes: 0

Views: 1140

Answers (1)

Vikas Rao
Vikas Rao

Reputation: 26

Inside init methodstrong text

grapesjs.init({
  colorPicker: {
    appendTo: 'parent',
    offset: { top: 26, left: -166, },
  },

});

Upvotes: 0

Related Questions