y-prosemirror
Advanced tools
Comparing version 1.0.8 to 1.0.9
{ | ||
"name": "y-prosemirror", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"description": "Prosemirror bindings for Yjs", | ||
@@ -5,0 +5,0 @@ "main": "./dist/y-prosemirror.cjs", |
@@ -19,3 +19,2 @@ /** | ||
import * as dom from 'lib0/dom.js' | ||
import * as fun from 'lib0/function.js' | ||
@@ -143,3 +142,3 @@ /** | ||
if (pluginState.snapshot == null && pluginState.prevSnapshot == null) { | ||
if (changedInitialContent || !fun.equalityDeep(view.state.doc.type.createAndFill().content.toJSON(), view.state.doc.content.toJSON())) { | ||
if (changedInitialContent || view.state.doc.content.findDiffStart(view.state.doc.type.createAndFill().content) !== null) { | ||
changedInitialContent = true | ||
@@ -146,0 +145,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
3749786
36583