Support multiple Blockly instances.

This commit is contained in:
Neil Fraser
2015-04-28 13:51:25 -07:00
parent 67140282a0
commit 17961f7f58
43 changed files with 1412 additions and 1403 deletions

View File

@@ -67,11 +67,14 @@ function start() {
length: 3,
colour: '#ccc',
snap: true},
readOnly: false,
realtime: false,
realtimeOptions:
{clientId: 'YOUR CLIENT ID GOES HERE',
chatbox: {elementId: 'chatbox'},
collabElementId: 'collaborators'}});
collabElementId: 'collaborators'},
scrollbars: true
});
if (Blockly.Realtime.isEnabled()) {
enableRealtimeSpecificUi();
}