XF 2.2 How can I make something like [BBCode]<HTML codes>[/BBCode] in HTML replacement?

securedme

Active member
I want the HTML output to be wrapped by some BBcodes.. just like this:

1621783749589.webp

becomes:

This is a test.
 
Last edited:
Are you trying to customise the built in icode bb code, or create your own?

If the former, add this to the extra.less template:

Less:
.bbCodeInline
{
    font-size: 120%;
}
 
Could you not set it up as a custom bbcode called spoiler2 or htmlspoiler or something? Then use the html as {option}? I haven't tried it... just a thought.
 
Could you not set it up as a custom bbcode called spoiler2 or htmlspoiler or something? Then use the html as {option}? I haven't tried it... just a thought.

I guess there involves quite many coding (javascript/css, etc.) behind the SPOILER bbcode and I want to avoid it. So I'm thinking of a lazy way.. to make use of an existing one.
 
Top Bottom