Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Javascript support #10

Open
ahopkins opened this issue Jun 24, 2019 · 1 comment
Open

Javascript support #10

ahopkins opened this issue Jun 24, 2019 · 1 comment

Comments

@ahopkins
Copy link

Are <script></script> tags supported?

<!DOCTYPE html>
<h1>Test</h1>
<div id="bucket">foo</div>
<script type="text/javascript">
document.querySelector("#bucket").innerHTML = "hello";
</script>
@leog
Copy link

leog commented Sep 27, 2020

+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>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants