scripting blocks within script tag
Opened this issue · 0 comments
tangmingsh commented
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)