XF 1.2 Hide "Rich Text Editor" buttons?

Ivar

Member
Hi there,

Quick question, is it possible to hide some of the buttons in the Rich Text Editor?
Screen Shot 2013-12-02 at 09.12.53.webp
..I am looking to hide the text color button and the increase/decrease text size buttons.

Thanks!
Ivar
 
These are my notes, change as needed.

Edit the file /js/xenforo/full/bb_code_edit.js

Comment out the following starting on line #64

Code:
		getButtonConfig: function()
		{
			var self = this,
				buttons = [ ['switchmode'], ['removeformat']],
				bC = this.options.buttonConfig,
				group;

			if (!bC || bC.basic)
			{
				buttons.push(['bold', 'italic', 'underline'/*, 'deleted'*/]);
			}
			/*if (!bC || bC.extended)
			{
				buttons.push(['fontcolor', 'fontsize', 'fontfamily']);
			}*/
			if (!bC || bC.link)
			{
				buttons.push(['createlink', 'unlink']);
			}
			/*if (!bC || bC.align)
			{
				buttons.push(['alignment']);
			}*/
			if (!bC || bC.list)
			{
				buttons.push(['unorderedlist', 'orderedlist'/*, 'outdent', 'indent'*/]);
			}
			else if (bC.indent)
			{
				buttons.push(['outdent', 'indent']);
			}
 
Top Bottom