MyBB Community Forums

Full Version: Font Size with numbers
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Currently we have 7 options at the editor toolbar for the font size:
  • xx-small
  • x-small
  • small
  • medium
  • large
  • x-large
  • xx-large
However, it seems to be possible to use font sizes with numbers in source edit mode. Eg.:
[size=5]Some text.[/size]
Which results in: Some text.
Problem is, while the MyBB parsing supports this when we click Preview or Post, the editor does not support it, and the size tag is removed after clicking Preview or switching to wysiwyg mode.

Another bizarre thing is that negative numbers are allowed in the size tag. Eg.:
[size=-5]Some text.[/size]
Which results in: Some text.

Worst of all, the text can even be made invisible when using values such as -10. Eg.:
[size=-10]Some text.[/size]
Which results in: Some text.
test

Well... That certainly worked.

I can confirm the issue here. The size code was removed upon full-editing this post.
Hi,

Thank you for your report. We have pushed this issue to our Github repository for further analysis where you can track our commits and progress with fixing this bug. Discussions regarding this bug may also take place there too.

Follow this link to visit the issue on Github: https://github.com/mybb/mybb/issues/2217

Thanks for contributing to MyBB!

Regards,
The MyBB Group