When dragging the "set light bulb to" block into the staging area, it works fine when switching between Blocks and Javascript. After dragging "setColor()" on the JavaScript side, I get an error when trying to switch back into the Block editor.
The block code side creates this function when switching to Javascript
lightbulb.setColor(0xFF0000)
The Javascript side creates this function when dragging in.
lightbulb.setColor(Colors.Red)
Neither of these functions seem to work correctly when trying to use them inline in Markdown examples.
When dragging the "set light bulb to" block into the staging area, it works fine when switching between Blocks and Javascript. After dragging "setColor()" on the JavaScript side, I get an error when trying to switch back into the Block editor.
The block code side creates this function when switching to Javascript lightbulb.setColor(0xFF0000)
The Javascript side creates this function when dragging in. lightbulb.setColor(Colors.Red)
Neither of these functions seem to work correctly when trying to use them inline in Markdown examples.