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

XF 1.2 Hide "Rich Text Editor" buttons?

Discussion in 'Styling and Customization Questions' started by Ivar, Dec 2, 2013.

  1. Ivar

    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.png
    ..I am looking to hide the text color button and the increase/decrease text size buttons.

    Thanks!
    Ivar
     
  2. AndyB

    AndyB Well-Known Member

    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']);
    			}
    	
    
     
    oman and Ivar like this.
  3. Ivar

    Ivar Member

    Thank you!
     
  4. AndyB

    AndyB Well-Known Member

  5. cclaerhout

    cclaerhout Well-Known Member

    Ivar likes this.

Share This Page