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

scripting blocks within script tag #3

Open
tangmingsh opened this issue Nov 20, 2020 · 0 comments
Open

scripting blocks within script tag #3

tangmingsh opened this issue Nov 20, 2020 · 0 comments

Comments

@tangmingsh
Copy link

I would like to use scripting blocks within script tag , I show errors as below

HTML code is

<!DOCTYPE HTML>
<html>
  <head>
    <meta charset="utf-8">
  </head>
  <body>
    <script>
      if (true) {
        window.alert('');
      }
    </script>
  </body>
</html>

The errors are below

generator.js:182 Uncaught Error: Language "HTML" does not know how to generate  code for block type "text_print".
    at Blockly.Generator.blockToCode (generator.js:182)
    at Blockly.Generator.workspaceToCode (generator.js:94)
    at myUpdateFunction (demo.html?_ijt=cdjcn6kam0vno4nl0kl5t19jld:744)
    at Blockly.WorkspaceSvg.Blockly.Workspace.fireChangeListener (workspace.js:652)
    at Blockly.Events.fireNow_ (events.js:192)
bestian added a commit to bestian/blockly-html that referenced this issue Oct 31, 2022
@bestian bestian mentioned this issue Oct 31, 2022
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

1 participant