XF 2.0 Store data from the BBcode renderer globally accessible?

Lukas W.

Well-known member
I'm currently searching for a way to integrate dynamic google webfont usage into my Editor Manager. I've done this back in my Fonts Manager by storing the available fonts with a <script> tag and then dynamically load them with a javascript frontend mechanism, but that was quite vulnerable to xss attacks. I also don't want to straight up load them, because that's unnecessary overhead. What I kind of need is a mechanism to store used fonts within a rendered bb_code block to a globally accessible array, that I then can implode to the google webfonts url and include into the page head. Is it possible to do something like that through a given mechanism in XF2?
 
Back
Top Bottom