examples use hosted server

This commit is contained in:
Kevin Jahns 2018-11-26 02:13:06 +01:00
parent f572f94586
commit 539fa8b21d
4 changed files with 5 additions and 4 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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')

View File

@ -52,6 +52,7 @@ export default [{
sourcemap: true
},
plugins: [
babel(),
uglify()
]
}, {