Log In
Fairy Weather Castform Don't have an account yet? Register now!
.

Forum Thread

Post Preview Not Giving Accurate Preview

Forum-Index Bug Reports Confirmed Bugs Post Preview Not Giving Accurate Preview
chungus
OFFLINE
Trainerlevel: 38

Forum Posts: 397
Posted: Sat, 30/01/2021 03:01 (3 Years ago)
This isn't urgent or game-breaking, just annoying when experimenting with the limits of bbcode but anyways, I don't think many people have encountered this, but while experimenting with using css in the bbcode, I have discovered that the forum preview shows something that is not accurate. In the preview, this
Show hidden content
[color=green; font-size:10px; font-weight: bold; font-family:courier new]Example[/color]
looks like it is working code, (which you might see if you try this as well,) but when posted, it shows a jumble of code that doesn't work. So, basically, the preview shows a misleading example of what you've written. This is most likely due to PokeHeroes' set font that contradicts the ability to change fonts in bbcode.
chungus
OFFLINE
Trainerlevel: 38

Forum Posts: 397
Posted: Mon, 01/02/2021 13:11 (3 Years ago)
A way to solve this could possibly be to make the preview window have the set font and background like the rest of the site.
CatLady
OFFLINE
Trainerlevel: 103

Forum Posts: 8,594
Posted: Mon, 01/02/2021 13:51 (3 Years ago)
It is a bug, but the bug is preview also executing HTML-coding, while we only have permission to use BBCode (':
this "font-size:10px; font-weight: bold; font-family:courier new" is HTML, not BBC
Credits for avatar to ~Cookie~

Kitties! Riako has no idea what he unleashed with that update🙀
Collecting Lovely Larvesta and Silly Seel Plushies~
Looking for Ice Gems and Flying Gems here! Help me hunt a Shiny Articuno!
(You can win your own non-shiny Articuno in return)
Breeding events for the cause here!
chungus
OFFLINE
Trainerlevel: 38

Forum Posts: 397
Posted: Mon, 01/02/2021 13:54 (3 Years ago)
(css actually, and yes, I know) well, as stated in the first post, not really urgent and not many have encountered it. I reported this due to the fact that the preview runs html, which could also mean that XSS attacks are possible. Thabkfully, cloudflare has integrated anti-xss when a new page is loaded, but due to the fact that the preview is run every couple of seconds, it means that it is not protected. I doubt this could be a problem but it's better to be safe than sorry.