Thank you, but there is!But there is no size=2
[SIZE=2]<span style="font-size: 10px">[size=n] BBCode with your own version that does this. We do this loads on our sites where we don't want users splashing colours or various font sizes all over the place.
/^[0-5]$/ to limit it to 0-5 for instance. Obviously you might want to do a proper job and fill in the description and examples for usage and so forth.extra.css (Appearance - Templates) we can add the classes for our new "size" elements:.custom_size_0 { font-size: 20%; }
.custom_size_1 { font-size: 50%; }
.custom_size_2 { font-size: 90%; }
.custom_size_3 { font-size: 100%; }
.custom_size_4 { font-size: 130%; }
.custom_size_5 { font-size: 150%; }
/src/XF/BbCode/Renderer/Html.php around line 1400 and the sizes seem hardcoded there: switch ($inputSize)
{
case 1: return '9px';
case 2: return '10px';
case 3: return '12px';
case 4: return '15px';
case 5: return '18px';
case 6: return '22px';
default: return '26px';
}
Thanks for the detailed response. I was hoping it was easier to do than redefining SIZE, but that might be my only option.
The problem is old messages, not newer ones.I just took the font size tab out of the toolbar altogether, I don't really see a use for it at all on our forum.
That is probably the way I would go, but I think we will just have to leave it alone for now. I think we are getting a new editor for XF 2.4. Hopefully, sizes won't be hard coded there.write an add-on to change the underlying behaviour.
In that case I’m sure you can solve the older posts with a database query find/replace.The problem is old messages, not newer ones.
We use essential cookies to make this site work, and optional cookies to enhance your experience.