Results 1 to 3 of 3

Thread: HTMLEditor Show Hide Format Buttons

  1. #1
    Ext JS Premium Member
    Join Date
    Feb 2010
    Posts
    21

    Question HTMLEditor Show Hide Format Buttons

    I would like to show the italics and hide the underline and bold buttons. The only option that I can find is enableFormat and this shows/hides all three buttons.

    I thought about just hiding the buttons at run time, but the ids for the tables and buttons that surround the bold and underline buttons are dynamically generated. In other words it just gives an id of "ext-gen#". I will have this on different pages and I cannot guarantee that the number will be the same every time.

    Please let me know if you have any other ideas.

    Thanks,
    TJ

  2. #2
    Sencha User VinylFox's Avatar
    Join Date
    Mar 2007
    Location
    Baltimore, MD
    Posts
    1,501

    Default

    Check out the HtmlEditor's getToolbar method, then take a look at the Toolbar's find or findBy methods, and finally the Button's disable or hide methods.

  3. #3
    Ext JS Premium Member
    Join Date
    Feb 2010
    Posts
    21

    Thumbs up Thank You

    That was exactly what I was looking for. I have a list of the buttons now and can show and hide them accordingly.

    -TJ

Similar Threads

  1. [CLOSED][3.0.0] HTMLEditor Format Buttons Not Displaying
    By mfariborz in forum Ext 3.x: Bugs
    Replies: 2
    Last Post: 2 Aug 2009, 4:48 PM
  2. numberfield show format
    By Radziu in forum Ext 2.x: Help & Discussion
    Replies: 8
    Last Post: 7 Mar 2009, 3:01 AM
  3. How to hide and show xtype: 'htmleditor'
    By frank_ash in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 8 Dec 2008, 10:27 PM
  4. Chat text editor with HtmlEditor - Problems to keep the format of the words
    By brunocechet in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 11 Sep 2008, 10:58 AM
  5. element hide hide show bug
    By pomata in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 9 Dec 2006, 7:16 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
  •