y-prosemirror
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "y-prosemirror", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Prosemirror bindings for Yjs", | ||
@@ -5,0 +5,0 @@ "main": "./dist/y-prosemirror.cjs", |
@@ -19,2 +19,3 @@ /** | ||
import * as dom from 'lib0/dom.js' | ||
import * as fun from 'lib0/function.js' | ||
@@ -142,4 +143,3 @@ /** | ||
if (pluginState.snapshot == null && pluginState.prevSnapshot == null) { | ||
const emptySize = view.state.doc.type.createAndFill().content.size | ||
if (changedInitialContent || view.state.doc.content.size > emptySize) { | ||
if (changedInitialContent || !fun.equalityDeep(view.state.doc.type.createAndFill().content, view.state.doc)) { | ||
changedInitialContent = true | ||
@@ -146,0 +146,0 @@ binding._prosemirrorChanged(view.state.doc) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
3742457
36557