Skip to content

scripting blocks within script tag  #3

Description

@tangmingsh

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions