Hi Maribeth,
Sorry about the delayed response.
But I got to the bottom of this.
Looks like if one is using react wherein Blockly is used as Component as shown in react example samples.. we need to control all these aspects individually as attributes of the BlocklyComponent.
BlocklyOptions as json config object does not mean anything in that world.
I had to change media url as below to get it working.
Thanks for your help Maribeth.
<BlocklyComponent readOnly={false}
trashcan={true}
media={'/media/'}
move={{
scrollbars: true,
drag: true,
wheel: true
}}
horizontalLayout={false}
zoom={{
controls: true,
wheel: true,
startScale: 1,
maxScale: 3,
minScale: 0.3,
scaleSpeed: 1.2
}}
Regards,
Sameer Apte