I don’t think this works. I tried the api.registerTopicFooterButton myself and it doesn’t work, not even the preview link.
I suspect it’s because of the script tag. The normal way of using javascripts/discourse works.
I don’t think this works. I tried the api.registerTopicFooterButton myself and it doesn’t work, not even the preview link.
I suspect it’s because of the script tag. The normal way of using javascripts/discourse works.