examples use hosted server
This commit is contained in:
parent
f572f94586
commit
539fa8b21d
@ -1,6 +1,6 @@
|
||||
import * as Y from '../index.mjs'
|
||||
import { WebsocketProvider } from '../provider/websocket.mjs'
|
||||
import { prosemirrorPlugin, cursorPlugin } from '../bindings/prosemirror.mjs'
|
||||
import { prosemirrorPlugin, cursorPlugin } from '../bindings/prosemirror'
|
||||
|
||||
import { EditorState } from 'prosemirror-state'
|
||||
import { EditorView } from 'prosemirror-view'
|
||||
@ -8,7 +8,7 @@ import { DOMParser } from 'prosemirror-model'
|
||||
import { schema } from 'prosemirror-schema-basic'
|
||||
import { exampleSetup } from 'prosemirror-example-setup'
|
||||
|
||||
const provider = new WebsocketProvider('wss://yjs-v13-72-p02p39swv.now.sh')
|
||||
const provider = new WebsocketProvider('ws://35.246.255.92:1234')
|
||||
const ydocument = provider.get('prosemirror')
|
||||
const type = ydocument.define('prosemirror', Y.XmlFragment)
|
||||
|
||||
|
@ -4,7 +4,7 @@ import { QuillBinding } from '../bindings/quill.mjs'
|
||||
|
||||
import Quill from 'quill'
|
||||
|
||||
const provider = new WebsocketProvider('wss://yjs-v13-72-p02p39swv.now.sh')
|
||||
const provider = new WebsocketProvider('ws://35.246.255.92:1234')
|
||||
const ydocument = provider.get('quill')
|
||||
const ytext = ydocument.define('quill', Y.Text)
|
||||
|
||||
|
@ -2,7 +2,7 @@ import * as Y from '../index.mjs'
|
||||
import { WebsocketProvider } from '../provider/websocket.mjs'
|
||||
import { TextareaBinding } from '../bindings/textarea.mjs'
|
||||
|
||||
const provider = new WebsocketProvider('wss://yjs-v13-72-p02p39swv.now.sh')
|
||||
const provider = new WebsocketProvider('ws://35.246.255.92:1234')
|
||||
const ydocument = provider.get('textarea')
|
||||
const type = ydocument.define('textarea', Y.Text)
|
||||
const textarea = document.querySelector('textarea')
|
||||
|
@ -52,6 +52,7 @@ export default [{
|
||||
sourcemap: true
|
||||
},
|
||||
plugins: [
|
||||
babel(),
|
||||
uglify()
|
||||
]
|
||||
}, {
|
||||
|
Loading…
x
Reference in New Issue
Block a user