1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

What is the correct method to remove buttons from tinyMCE?

Discussion in 'XenForo Questions and Support' started by TrevC, Mar 16, 2011.

  1. TrevC

    TrevC Well-Known Member

    As the title states.

    I've been poking around the documentation and templates. No luck so far. Might be quicker to just ask.

    I've like to remove font-family/font-size.

    Cheers
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    I managed to remove the smilie dropdown by editing editor_template.js directly.
     
  3. James

    James Well-Known Member

    Where is editor_template.js located, relative to XenForo root? I'd like to play with that to (attempt to) create custom toolbars, according to TinyMCE's documentation.
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    /js/tinymce/themes/xenforo
     
    James likes this.
  5. TrevC

    TrevC Well-Known Member

    I had no idea tinyMCE was so... large.

    I was able to just hide everything via styles. Seems (in my opinion) a bit cleaner since the changes stay with my theme.

    Hide the font selector:
    Code:
    #ctrl_message_html_fontselect{display: none;}
     
  6. James

    James Well-Known Member

  7. Deebs

    Deebs Well-Known Member

    Where did you put this? I tried extra.css and the font selector still shows...
     
  8. TrevC

    TrevC Well-Known Member

    I assumed extra.css would've worked.

    Have you tried:
    Code:
    #ctrl_message_html_fontselect{display: none !important;}
    All of my styles are in an external stylesheet (on the file system).
     
  9. Deebs

    Deebs Well-Known Member

    I have indeed and it still shows :(
     
  10. TrevC

    TrevC Well-Known Member

    This is a copy/paste from mine:
    HTML:
    #ctrl_message_html_fontselect, #ctrl_message_html_fontsizeselect_text, #ctrl_message_html_fontsizeselect_open{display: none;}
    I thought extra.css was loaded last, so it should work.
     

Share This Page