Skip to content

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.

feat: add selection function

DiamondThree1b337e976674
diff --git a/libs/components/editor-core/src/editor/selection/selection.ts b/libs/components/editor-core/src/editor/selection/selection.ts
index ad52fdd2d8..882d637b16 100644
--- a/libs/components/editor-core/src/editor/selection/selection.ts
+++ b/libs/components/editor-core/src/editor/selection/selection.ts
@@ -1052,7 +1052,8 @@ export class SelectionManager implements VirgoSelection {
/**
*
* move active selection to the new position
- * @param index:number
+ * @param {number} index
+ * @param {string} blockId
* @memberof SelectionManager
*/
public moveCursor(index: number, blockId: string): void {