XF 2.1 Adding custom header BB code to text editor

clarknovak

New member
Hi everyone, n00b here (actually ex-vBulletin convert!), so be gentle :)

I want to add a BBCode button command to my forum's text editor box that will roll up this bit of code:
Code:
<p style="color: #54acd2; font-size: 26px;"><strong></strong></p>
and apply it to selected text. It's for header text in posted tutorials.

I'm struggling with getting this added using the Custom BBCode editor, and then adding a button to the toolbar is way out in left field. Would someone kindly point me in the right direction?

Clark
 
For the custom BBCode, something like this should work:

custom-bbcode.webp

For the toolbar icon, scroll down the same page a bit more to this part:

custom-bbcode-icon.webp

I use this addon to modify or rearrange the editor toolbar icons:

 
Finally got round to implementing this - only change I needed to make was to replace {option} in the code string with {text}, and then place the button in the toolbar using the button editor, and I was good to go. Thank you again.
 
Top Bottom