aboutsummaryrefslogtreecommitdiff
path: root/editor/editor.d.ts
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2021-07-26 23:22:53 +0700
committerShulhan <ms@kilabit.info>2021-07-26 23:22:53 +0700
commit368f58ff4b70d17b1bfc7bc5ced80efc48d0d293 (patch)
treeab675342de7343420cba4d99aa3b10bb1fafe1f6 /editor/editor.d.ts
parent765e1f6a9bdac081fee70362542ce72e14a0abb5 (diff)
downloadpakakeh.ts-368f58ff4b70d17b1bfc7bc5ced80efc48d0d293.tar.xz
editor: init the style sheet using javascript and add support for tab
Diffstat (limited to 'editor/editor.d.ts')
-rw-r--r--editor/editor.d.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/editor.d.ts b/editor/editor.d.ts
index 59f02fa..5e781e5 100644
--- a/editor/editor.d.ts
+++ b/editor/editor.d.ts
@@ -20,6 +20,7 @@ export declare class Editor implements IEditor {
constructor(opts: IEditor);
OpenFile(path: string): Response;
SaveFile(node: IVfsNode): Response;
+ initStyle(): void;
insertNewline(x: number): void;
onClickText(text: HTMLElement): void;
onKeydownText(x: number, text: HTMLElement, ev: KeyboardEvent): boolean;