blockly-samples
blockly-samples copied to clipboard
Advanced playground should use JSON instead of XML on reload
Category
- Plugins
Component
Advanced playground
Describe the bug
The playground still uses XML serialization on reload, so if you test out readOnly mode, your blocks get stuck as readonly. The JSON serializer doesn't have this problem, so we should witch to using that.
To Reproduce
Steps to reproduce the behavior:
- Go to the advanced playground.
- Add some blocks to the workpace.
- Switch to readonly mode.
- Switch out of readonly mode.
- Observe how your blocks are still readonly.
Expected behavior
Playground should use JSON serialization to avoid this problem