Conversation
|
This already is much more reliable! I can see the synchronization from one tab to another, and there are no more issues around the The one remaining issue I see: I can apply changes to a document, and then open the URL in a new tab and I see a blank page. The new editor does nothing to catch up on the change log. From then on, any new synchronization occurs like normal, so the handle is solid. There is simply a missing phase: how to load the document from the I'll explore more once plugged in again. |
|
huh, do you think this could be an issue in the const { doc, schema, plugin } = init(handle!, ["page"])
window.doc = doc
window.schema = schema
window.plugin = pluginbrowser console: |
|
Meanwhile, ( I use |
|
Yep! A simple change in name; the guide should change useEffect(() => {
if (editorRoot.current != null && loaded) {
const { pmDoc, schema, plugin } = init(handle!, ["text"])
const plugins = exampleSetup({schema})
plugins.push(plugin)
setView(new EditorView(
editorRoot.current,
{ state: EditorState.create({ schema, plugins, doc: pmDoc, }), }
))
}
return () => { if (view) { view.destroy(); setView(null) } }
}, [editorRoot, loaded]) |
|
You also have my 👍 to change the return signature to conform to prosemirror, seems sensible in this case. |
A change here means there is no more need for: https://github.com/automerge/automerge.github.io/pull/99#pullrequestreview-2436880654
|
Also see! |
Co-authored-by: Calliope <30454698+c4lliope@users.noreply.github.com>
Update the rich text docs to match the simplified plugin API. This is a sketch, I still need to check the example code functions.