I remember now, there already is an 'h' bbcode defined, at least in vb414. but it doesn't work right. (I haven't installed 4.1.5 yet so I'm not sure if it's fixed). But I think you can define your own using Custom BB Codes -> Add New BB Code in the adminCP. For instance you can define one with tag name h1 and replacement <h1>{param}</h1>, then use [h1]Heading[/h1] in a post.
BTW, don't use the tag option to do something like <h{option}>{param}</h{option}> thinking that you could then use [h=1]Heading[/h] to set the size, because you can't control what is entered as the option, so it would let users set any attributes they wanted.
|