client: fix selection in callout

This commit is contained in:
fantasticit 2022-05-29 23:43:20 +08:00
parent 9d72480316
commit b08e1be52f
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ export const SelectionExtension = Extension.create({
if (isInCallout(view.state)) {
// @ts-ignore
const { path = [] } = $head;
startPos = path[2];
startPos = path[2] + 1;
endPos = startPos + path[3].content.size;
}