Results 1 to 4 of 4

Thread: HtmlEditor Font Color Icon

  1. #1
    Sencha User
    Join Date
    Feb 2015
    Posts
    2

    Default Answered: HtmlEditor Font Color Icon

    Hi..
    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.
    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.
    Attached Images Attached Images

  2. 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.

  3. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985
    Answers
    506

    Default

    Unfortunately there isn't an easy way to implement this. I think you'd have to have images for every possible color.

  4. #3
    Sencha User
    Join Date
    Feb 2015
    Posts
    2

    Default

    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?.

  5. #4
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985
    Answers
    506

    Default

    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.

Similar Threads

  1. [OPEN] Htmleditor font color issue in Firefox
    By michi-- in forum Ext JS 6.x Bugs
    Replies: 2
    Last Post: 4 Oct 2016, 7:36 AM
  2. Replies: 15
    Last Post: 26 Nov 2013, 8:18 AM
  3. Change color of a icon-font
    By Tioecomp in forum Ext: Q&A
    Replies: 2
    Last Post: 12 Nov 2013, 2:24 AM
  4. Change color of a icon-font
    By Tioecomp in forum Sencha Touch 2.x: Q&A
    Replies: 2
    Last Post: 7 Nov 2013, 4:03 AM
  5. htmleditor - font color & highlight color
    By markireland in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 18 Mar 2008, 5:04 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •