mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-14 02:09:01 +08:00
merge main
This commit is contained in:
commit
cf9cb28302
@ -124,7 +124,7 @@ export const Collaboration = Extension.create<CollaborationOptions>({
|
|||||||
undoManager.restore = () => {}
|
undoManager.restore = () => {}
|
||||||
}
|
}
|
||||||
|
|
||||||
const viewRet = originalUndoPluginView ? originalUndoPluginView(view) : undefined
|
const viewRet = originalUndoPluginView ? originalUndoPluginView(view) : null
|
||||||
|
|
||||||
return {
|
return {
|
||||||
destroy: () => {
|
destroy: () => {
|
||||||
@ -142,7 +142,7 @@ export const Collaboration = Extension.create<CollaborationOptions>({
|
|||||||
undoManager._observers = observers
|
undoManager._observers = observers
|
||||||
}
|
}
|
||||||
|
|
||||||
if (viewRet?.destroy) {
|
if (viewRet && viewRet.destroy) {
|
||||||
viewRet.destroy()
|
viewRet.destroy()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user