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

CTXMedia

Well-known member
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:
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.webp

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

Similar threads

Back
Top Bottom