We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
setSelection
1 parent 08c6de6 commit 36d17aaCopy full SHA for 36d17aa
packages/core/src/extensions/SideMenu/SideMenuPlugin.ts
@@ -547,7 +547,7 @@ export class SideMenuView<
547
return;
548
}
549
550
- const { contentNode, endPos } = blockInfo;
+ const { contentNode, startPos, endPos } = blockInfo;
551
552
// Creates a new block if current one is not empty for the suggestion menu to open in.
553
if (contentNode.textContent.length !== 0) {
@@ -561,7 +561,7 @@ export class SideMenuView<
561
.setTextSelection(newBlockContentPos)
562
.run();
563
} else {
564
- this.editor._tiptapEditor.commands.setTextSelection(endPos);
+ this.editor._tiptapEditor.commands.setTextSelection(startPos + 1);
565
566
567
// Focuses and activates the suggestion menu.
0 commit comments