Hi,
thanks for answering. I'll work on cion + img later, but about JSON I still have problems...
In my index.html:
<script src="./S4E/toolbox/toolbox_standard.json"></script>
In my initialisation for my Code workspace (and my div is '
content_blocks
'):
Code.workspace = Blockly.inject('content_blocks', {
comments: true,
collapse: true,
disable: true,
grid:
{
spacing: 25,
length: 0,
colour: '#ccc',
snap: true
},
horizontalLayout: false,
maxBlocks: Infinity,
maxInstances: {
'test_basic_limit_instances': 3
},
maxTrashcanContents: 256,
media: './@blockly/media/',
sounds: true,
oneBasedIndex: true,
readOnly: false,
rtl: false,
move: {
scrollbars: true,
drag: true,
wheel: false
},
toolbox: 'toolboxS4E',
toolboxPosition: 'start',
renderer: renderer,
zoom: {
controls: true,
wheel: true,
startScale: 1.0,
maxScale: 4,
minScale: 0.25,
scaleSpeed: 1.1
}
});
[{
"kind": "toolboxS4E",
"contents": [
{
"kind": "category",
"name": "Control",
"contents": [
{
"kind": "block",
"type": "controls_if"
},
{
"kind": "block",
"type": "controls_whileUntil"
},
{
"kind": "block",
"type": "controls_for"
}
]
},
{
"kind": "category",
"name": "Logic",
"contents": [
{
"kind": "block",
"type": "logic_compare"
},
{
"kind": "block",
"type": "logic_operation"
},
{
"kind": "block",
"type": "logic_boolean"
}
]
}
]
}]
I think it's a stupid mistake, but Idon't know where...