This commit is contained in:
Zef Hemel
2024-01-24 14:44:39 +01:00
parent a9ce68860e
commit 8a89d69c22
16 changed files with 67 additions and 52 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ import { PageRef } from "$sb/lib/page.ts";
export function editorSyscalls(client: Client): SysCallMapping {
const syscalls: SysCallMapping = {
"editor.getCurrentPage": (): string => {
return client.currentPage!;
return client.currentPage;
},
"editor.getText": () => {
return client.editorView.state.sliceDoc();