mirror of
https://github.com/yjs/yjs.git
synced 2026-02-23 19:49:59 +01:00
added safety to setUserId (when called twice)
This commit is contained in:
@@ -134,11 +134,6 @@
|
||||
|
||||
<!-- Create the editor container -->
|
||||
<div id="editor">
|
||||
<div>Hello World!</div>
|
||||
<div>Some initial <b>bold</b> text</div>
|
||||
<div>
|
||||
<br>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -8,16 +8,16 @@ Y({
|
||||
},
|
||||
connector: {
|
||||
name: 'websockets-client',
|
||||
room: 'richtext-example17'
|
||||
// debug: true
|
||||
// url: 'http://127.0.0.1:2345'
|
||||
room: 'richtext-example18',
|
||||
debug: true
|
||||
//url: 'http://127.0.0.1:1234'
|
||||
},
|
||||
sourceDir: '/bower_components',
|
||||
share: {
|
||||
richtext: 'Richtext' // y.share.richtext is of type Y.Richtext
|
||||
}
|
||||
}).then(function (y) {
|
||||
window.y = y
|
||||
window.yquill = y
|
||||
|
||||
// create quill element
|
||||
window.quill = new Quill('#editor', {
|
||||
|
||||
Reference in New Issue
Block a user