Hi all!
I am new so i migth have done something wrong.
Anyways i am trying to add a export/import feature to my workspace.
I used this link to get the XML:
And this is my code for getting the xml:
var xml = Blockly.Xml.workspaceToDom(toolbox);
var xml_text = Blockly.Xml.domToText(xml);
But I keep getting a error in the console log.
Error:
Uncaught TypeError: a.getTopBlocks is not a function
at Object.Blockly.Xml.workspaceToDom (blockly_compressed.min.js:1017)
at NjkYzGYKPPzM:517
I have no idea what i am doing wrong.
So if anyone can help me?
Thanks
Luke