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

XF 1.3 Remove color/formatting in posts?

Discussion in 'XenForo Questions and Support' started by Zeta, Jan 22, 2014.

  1. Zeta

    Zeta Member

    How can I remove colors and formatting in threads/posts? My users are putting color and bold/italics in every post...You can imagine how annoying this is.

    Thanks!
     
  2. cclaerhout

    cclaerhout Well-Known Member

    Check this.
     
    RoldanLT likes this.
  3. AndyB

    AndyB Well-Known Member

    Here are instructions to remove the buttons in the toolbar.

    /js/xenforo/full/bb_code_edit.js

    Comment out unwanted buttons using the /* ... */

    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']);
    			}
    
     

Share This Page