There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
fix:lint
DiamondThreee795655bd947
diff --git a/libs/components/editor-core/src/editor/selection/selection.ts b/libs/components/editor-core/src/editor/selection/selection.tsindex 882d637b16..4b2da05cb6 100644--- a/libs/components/editor-core/src/editor/selection/selection.ts+++ b/libs/components/editor-core/src/editor/selection/selection.ts@@ -1057,13 +1057,10 @@ export class SelectionManager implements VirgoSelection {* @memberof SelectionManager*/public moveCursor(index: number, blockId: string): void {- const now_range = window.getSelection().getRangeAt(0);+ const nowRange = window.getSelection().getRangeAt(0);let preRang = document.createRange();- preRang.setStart(- now_range.startContainer,- now_range.startOffset + index- );- preRang.setEnd(now_range.endContainer, now_range.endOffset + index);+ preRang.setStart(nowRange.startContainer, nowRange.startOffset + index);+ preRang.setEnd(nowRange.endContainer, nowRange.endOffset + index);let prePosition = preRang.getClientRects().item(0);this.activeNodeByNodeId(blockId,