fix: fix bug #4785 (#4836)

https://github.com/ueberdosis/tiptap/issues/4785
This commit is contained in:
stevobm 2024-01-29 16:19:34 +08:00 committed by GitHub
parent adc99c6367
commit f3cba1e0b0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -26,7 +26,7 @@ export function getMarksBetween(from: number, to: number, doc: ProseMirrorNode):
})
} else {
doc.nodesBetween(from, to, (node, pos) => {
if (!node || node.nodeSize === undefined) {
if (!node || node?.nodeSize === undefined) {
return
}