What is the correct method to remove buttons from tinyMCE?

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
 

Brogan

XenForo moderator
Staff member
I managed to remove the smilie dropdown by editing editor_template.js directly.
 

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.
 

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;}
 

Deebs

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

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

Deebs

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).
I have indeed and it still shows :(
 

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