mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-06-07 17:43:49 +08:00
parent
5fb71f6602
commit
a08bf85cf0
5
.changeset/lemon-files-thank.md
Normal file
5
.changeset/lemon-files-thank.md
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@tiptap/core": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
This fixes a bug with inputrules not being able to resolve positions properly
|
@ -24,7 +24,7 @@ export const getTextContentFromNodes = ($from: ResolvedPos, maxMatch = 500) => {
|
|||||||
|| node.textContent
|
|| node.textContent
|
||||||
|| '%leaf%'
|
|| '%leaf%'
|
||||||
|
|
||||||
textBefore += node.isAtom ? chunk : chunk.slice(0, Math.max(0, sliceEndPos - pos))
|
textBefore += node.isAtom && !node.isText ? chunk : chunk.slice(0, Math.max(0, sliceEndPos - pos))
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user