update CodeMirror Example
This commit is contained in:
parent
d285e4258b
commit
11b30c7072
@ -7,11 +7,11 @@ Y({
|
|||||||
},
|
},
|
||||||
connector: {
|
connector: {
|
||||||
name: 'websockets-client',
|
name: 'websockets-client',
|
||||||
room: 'ace-example'
|
room: 'codemirror-example'
|
||||||
},
|
},
|
||||||
sourceDir: '/bower_components',
|
sourceDir: '/bower_components',
|
||||||
share: {
|
share: {
|
||||||
codemirror: 'Text' // y.share.textarea is of type Y.Text
|
codemirror: 'Text' // y.share.codemirror is of type Y.Text
|
||||||
}
|
}
|
||||||
}).then(function (y) {
|
}).then(function (y) {
|
||||||
window.yCodeMirror = y
|
window.yCodeMirror = y
|
||||||
@ -20,6 +20,5 @@ Y({
|
|||||||
mode: 'javascript',
|
mode: 'javascript',
|
||||||
lineNumbers: true
|
lineNumbers: true
|
||||||
})
|
})
|
||||||
window.codemirror = editor
|
|
||||||
y.share.codemirror.bindCodeMirror(editor)
|
y.share.codemirror.bindCodeMirror(editor)
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user