View Full Version : HtmlEditor Font Color Icon

3 Feb 2017, 5:41 AM
In Extjs 4.2 HtmlEditor Component whether the font color icon box change dynamically according to the color applied to the text when a user selects it.55878
The Icon is a gif img.(tb-sprite,gif)(x-edit-forecolor)
Initially the box color is RED, when a piece of character is selected and apply text Color(say Green).
Q1.Whether the RED color box can be changed to GREEN color box.
Q2.If possible,please give suggestion.:)

Gary Schlosberg
3 Feb 2017, 1:29 PM
Unfortunately there isn't an easy way to implement this. I think you'd have to have images for every possible color.

4 Feb 2017, 12:15 AM
Thanks Gary.
I checked the Extjs 6.2.0 HtmlEditor same behavior exists.Shall I expect Extjs team will provide a config option(solution) in future release?.

Gary Schlosberg
8 Feb 2017, 3:10 PM
As the documentation states, the htmleditor provides "a lightweight HTML Editor component". So I don't expect font color buttons to update to the color selected in future. There are a few more full-featured offerings available (such as TinyMCE) but it doesn't seem like they support this functionality either.