BlockMirror icon indicating copy to clipboard operation
BlockMirror copied to clipboard

Where to start without using the full BlockMirror class

Open mklomp opened this issue 4 years ago • 1 comments

I am considering using BlockMirror in our project but we already have a full layout with Blockly and CodeMirror in it. So we don't need the BlockMirror div. Whta I am looking for is 'just' the function getBlocklyXMLFromPython(python_code) which accepts a full python scripts, and outputs the Blockly XML. Is there something similar in this code so I can only use that part?

mklomp avatar Nov 26 '20 16:11 mklomp

Glad to hear you are interested!

I believe the main file you need is text_to_blocks.js along with almost everything in src/ast/*.js and src/skulpt/*.js. You may want to trim things down a little, or alternatively you might just consider having everything available and then only importing the relevant parts.

acbart avatar Nov 28 '20 04:11 acbart