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

TrevC

Well-known member
#1
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
 

James

Well-known member
#3
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.
 

TrevC

Well-known member
#5
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;}
 

Deebs

Well-known member
#7
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;}
Where did you put this? I tried extra.css and the font selector still shows...
 

TrevC

Well-known member
#8
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).
 

TrevC

Well-known member
#10
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.