Thanks Erik,
This is the code for the initialization.
var toolbox = document.getElementById("dbToolbox");
var options = {
toolbox: toolbox,
collapse: true,
comments: true,
disable: true,
maxBlocks: Infinity,
trashcan: true,
horizontalLayout: false,
toolboxPosition: 'start',
css: true,
media: '../media/',
rtl: false,
scrollbars: true,
sounds: true,
oneBasedIndex: true
};
// Inject the workspace
var workspace = Blockly.inject('blocklyDiv', options);
// Load Workspace Blocks from XML to workspace.
var workspaceBlocks = document.getElementById("dbWorkspace");
Blockly.Xml.domToWorkspace(workspaceBlocks, workspace);
The contents of dbToolbox
<category name="Database">
<block type="db_build_database"></block>
</category>
<category name="Table">
<block type="db_table"></block>
<block type="db_access"></block>
<block type="db_rule"></block>
<block type="db_scheduled_rule"></block>
<block type="day_month_schedule"></block>
</category>
<category name="Field">
<block type="db_field"></block>
<block type="db_access"></block>
<block type="db_rule"></block>
</category>
</xml>
The contents of dbWorkspace
</xml>
Hope that makes sense.