Open ahopkins opened 5 years ago
Are <script></script> tags supported?
<script></script>
<!DOCTYPE html> <h1>Test</h1> <div id="bucket">foo</div> <script type="text/javascript"> document.querySelector("#bucket").innerHTML = "hello"; </script>
+1, would love to run a script using Discourse javascript API like so:
<script type="text/discourse-plugin" version="0.8.18"> const user = api.getCurrentUser(); console.log(user.groups); </script>
Are
<script></script>
tags supported?