Found this content helpful? Log in or sign up to leave a like!

Insert Reftagger into Discussion Forum Posts

canvas_admin
Community Champion

As a theological institution, it would be helpful if in our discussion forums Bible references such as "John 3:16" was automatically tagged and have a tooltip using the following Reftagger code:

<script>
var refTagger = {
settings: {
bibleVersion: 'ESV'
}
};

(function(d, t) {
var n=d.querySelector('[nonce]');
refTagger.settings.nonce = n && (n.nonce||n.getAttribute('nonce'));
var g = d.createElement(t), s = d.getElementsByTagName(t)[0];
g.src='https://api.reftagger.com/v2/RefTagger.js';
g.nonce = refTagger.settings.nonce;
s.parentNode.insertBefore(g, s);
}(document, 'script'));
</script>

Does anybody know if this is possible and/or how to convert this script code to get it to work in discussion forums?

Labels (4)
0 Likes