yaxu
(Alex McLean)
1
I’d like to embed a musical REPL (i.e., the musical live coding editor here: https://strudel.tidalcycles.org/) in my discourse forum.
This is a case of including a little bit of javascript and whitelisting a html tag strudel-repl
. I’m struggling with the latter.
I found this thread, which (digging into git history) points at this line.
Searching for helper.whiteList
turns up a lot of old examples, but I somehow couldn’t find a clear example for using it in a simple plugin.
Does someone have some pointers for how to whitelist html tags?
yaxu
(Alex McLean)
2
Pardon me for the noise, a bit more searching and I found this recent plugin that looks like a perfect example for what I’m trying to do:
GitHub - unfoldingWord-dev/discourse-mermaid: Adds the Mermaid JS library to discourse
1 Like
I remember the <mark>
tag being whitelisted a while back:
Hopefully, that can give you some hints or clues while you wait for some more knowledgeable replies. 

2 Likes
yaxu
(Alex McLean)
4
Thanks, I accepted my own answer for now 
1 Like
system
(system)
Closed
5
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.