fix(grid): keep select all inside cell details

This commit is contained in:
t8y2 committed 2026-07-11 23:05:50 +08:00
1 parent ead9a05c3c
commit 7c0fd73f7d
3 files changed
+38

No files matched your search

@@ -0,0 +1,9 @@
interface CellDetailSelectionEditor {
state: { doc: { length: number } };
dispatch(spec: { selection: { anchor: number; head: number } }): void;
}
export function selectAllCellDetailText(editor: CellDetailSelectionEditor): boolean {
editor.dispatch({ selection: { anchor: 0, head: editor.state.doc.length } });
return true;
}