Post by leatherboy » Mon Mar 01, 2021 8:08 pm

Hi.
I would like to ask how I could add a custom font color in the table (more colors) of the default editor.
Christos

Newbie

Posts

Joined
Fri Feb 12, 2016 2:32 am

Post by rjcalifornia » Wed Mar 03, 2021 7:27 am

leatherboy wrote:
Mon Mar 01, 2021 8:08 pm
Hi.
I would like to ask how I could add a custom font color in the table (more colors) of the default editor.
Christos
You will have to change the Summernote.js file, and add more colors to the colors array. I think it might be something like this:

Code: Select all

colors: [['#444444','#000000'...],
colorsName: [['CustomColorName','Black'...],

Image


Active Member

Posts

Joined
Fri Sep 02, 2011 1:19 pm
Location - Worldwide

Post by leatherboy » Thu Mar 04, 2021 9:30 pm

You will have to change the Summernote.js file, and add more colors to the colors array. I think it might be something like this:

Code: Select all

colors: [['#444444','#000000'...],
colorsName: [['CustomColorName','Black'...],
Thank you.
It worked fine.
Christos

Newbie

Posts

Joined
Fri Feb 12, 2016 2:32 am
Who is online

Users browsing this forum: No registered users and 32 guests