y-prosemirror
Advanced tools
Comparing version 0.2.4 to 0.2.5
{ | ||
"name": "y-prosemirror", | ||
"version": "0.2.4", | ||
"version": "0.2.5", | ||
"description": "Prosemirror bindings for Yjs", | ||
@@ -5,0 +5,0 @@ "main": "./dist/y-prosemirror.cjs", |
@@ -25,3 +25,3 @@ | ||
export const yUndoPlugin = ({ protectedNodes = new Set(['paragraph']) } = {}) => new Plugin({ | ||
export const yUndoPlugin = ({ protectedNodes = new Set(['paragraph']), trackedOrigins = [] } = {}) => new Plugin({ | ||
key: yUndoPluginKey, | ||
@@ -33,3 +33,3 @@ state: { | ||
const undoManager = new UndoManager(ystate.type, { | ||
trackedOrigins: new Set([null, ySyncPluginKey]), | ||
trackedOrigins: new Set([null, ySyncPluginKey].concat(trackedOrigins)), | ||
deleteFilter: item => !(item instanceof Item) || | ||
@@ -36,0 +36,0 @@ !(item.content instanceof ContentType) || |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3119130