Update: 更新Blockly

This commit is contained in:
王立帮
2024-10-11 22:58:15 +08:00
parent ea8f4d8146
commit 507616d8b7
2 changed files with 11 additions and 11 deletions

View File

@@ -594,8 +594,7 @@ class EditorMix extends EditorBase {
this.showParseMixErrorDialog(mixDom, undefinedBlocks, endFunc);
return;
}
blockPage.getEditor().clear();
Blockly.Xml.domToWorkspace(xmlDom[0], blockPage.getEditor());
Blockly.Xml.clearWorkspaceAndLoadFromXml(xmlDom[0], blockPage.getEditor());
blockPage.getEditor().scrollCenter();
Blockly.hideChaff();
if (!useIncompleteBlocks && codeDom && xmlDom.attr('shown') === 'code') {