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