XF 2.1 Want to replace an inserted BBCode by two BBCodes

TheSkullKid

Active member
Hello,

maybe someone could help me again. I would like to replace an inserted BBCode by two BBCodes automatically, eg. if you enter or insert the BBCode [MAIN]{text}[/MAIN] I would like to insert [MAIN][SUB]{text} [/SUB][/MAIN].

This could also happen by saving the post.
 
Behind the MAIN BBcode I got a callback code, behind the other I put some CSS code to display the content in a special way.
And is there a way to get all BBCode inside a text if the text is quoted? I do not mean if you press on the quote button, I mean more if you mark the text and then press quote or if you collect the quoted text marks.
 
Back
Top Bottom