fix(grid): keep select all inside cell details
This commit is contained in:
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;
|
||||
}
|
||||
Reference in new issue
Block a user