Expose "range" to textSerializer. Used in "getTextBetween"
This commit is contained in:
@@ -31,6 +31,7 @@ export function getTextBetween(
|
||||
pos,
|
||||
parent,
|
||||
index,
|
||||
range,
|
||||
})
|
||||
} else if (node.isText) {
|
||||
text += node?.text?.slice(Math.max(from, pos) - pos, to - pos)
|
||||
|
||||
Reference in New Issue
Block a user