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

XF 1.3 Can the strike-through button be moved back to being a button on the main toolbar?

CTXMedia

Formerly CyclingTribe
#1
After upgrading to XF 1.3 members are immediately complaining about the strike-through button being "hidden" - can it be put back as a single button in the toolbar (pre-1.3)?

Thanks,
Shaun
 
Last edited:

Chris D

XenForo developer
Staff member
#5
Easiest way is to turn on uncompressed JavaScript in Admin CP > Options > Debug Options (requires debug mode to be enabled).

upload_2014-3-17_16-32-45.png

Then edit js/xenforo/full/bb_code_edit.js.

Find:
Code:
buttons.push(['bold', 'italic', 'underline']);
Replace:
Code:
buttons.push(['bold', 'italic', 'underline', 'deleted']);
That adds the button back in addition to the existing button in the dropdown.

It's possibly feasible with a small add-on too, but I haven't looked into it yet.

You could also create it as a Custom BB Code using a different tag name. But the button won't be near the original location and it may cause confusion having multiple tags doing a similar thing.
 

Chris D

XenForo developer
Staff member
#6
Ah, actually, don't turn on debug and don't edit the full file.

Instead edit js/xenforo/bb_code_edit.js.

Find:
Code:
c.push(["bold","italic","underline"])
Replace:
Code:
c.push(["bold","italic","underline","deleted"])
And this is all assuming that I have remembered correctly that the strike through used to be next to B I U...
 

CTXMedia

Formerly CyclingTribe
#9
Ah, actually, don't turn on debug and don't edit the full file.

Instead edit js/xenforo/bb_code_edit.js.

Find:
Code:
c.push(["bold","italic","underline"])
Replace:
Code:
c.push(["bold","italic","underline","deleted"])
And this is all assuming that I have remembered correctly that the strike through used to be next to B I U...
Perfect - works a treat. Thanks Chris. (y)