diff --git a/core/toolbox.js b/core/toolbox.js index 4047c729c..4c93e4c66 100644 --- a/core/toolbox.js +++ b/core/toolbox.js @@ -334,7 +334,7 @@ Blockly.Toolbox.prototype.syncTrees_ = function(treeIn, treeOut, pathToMedia) { } } - var styleName = childIn.getAttribute('style'); + var styleName = childIn.getAttribute('categorystyle'); var colour = childIn.getAttribute('colour'); if (colour && styleName) { diff --git a/tests/playground.html b/tests/playground.html index 94bf7e2ac..66d4e935c 100644 --- a/tests/playground.html +++ b/tests/playground.html @@ -421,7 +421,7 @@ h1 { Variables category uses untyped variable blocks. See https://developers.google.com/blockly/guides/create-custom-blocks/variables#untyped_variable_blocks for more information. -->