Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
458 views
in Technique[技术] by (71.8m points)

javascript - Change text color icon color to selected color Froala Editor

In FroalaEditor, I am trying to create an option to change text color using the inline toolbar.

Here is the example I have done so far: https://jsfiddle.net/moviecrew/ph7au4v5/

 new FroalaEditor('div#froala-editor', {
   toolbarInline: true,
   charCounterCount: false,
   toolbarVisibleWithoutSelection: true,
   toolbarButtons: ['insertLink', 'color', 'bold', 'italic', 'underline', 'strikeThrough', 
    'subscript', 'superscript', 'fontFamily', 'fontSize', 'textColor', 'backgroundColor', 
    'inlineClass', 'inlineStyle', 'clearFormatting']
});

When a color is selected, I would like to change the color of this icon reflecting the selected color for the selected text. enter image description here

I checked the doc but there was no event related to it.

Is there anything we can do to make this work?

It should actually look like this https://tppr.me/MFxzb

Thank you

question from:https://stackoverflow.com/questions/65950787/change-text-color-icon-color-to-selected-color-froala-editor

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...