mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-11-27 14:59:27 +08:00
This commit is contained in:
parent
110b5daf0d
commit
e280a02597
@ -9,7 +9,7 @@ export const getTextContentFromNodes = ($from: ResolvedPos, maxMatch = 500) => {
|
||||
(node, pos, parent, index) => {
|
||||
textBefore += node.type.spec.toText?.({
|
||||
node, pos, parent, index,
|
||||
}) || node.textContent || '%leaf%'
|
||||
}) || $from.nodeBefore?.text || '%leaf%'
|
||||
},
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user