diff --git a/ts/editor/index.ts b/ts/editor/index.ts index 46cf52524..6bcd68579 100644 --- a/ts/editor/index.ts +++ b/ts/editor/index.ts @@ -18,6 +18,14 @@ declare global { } } +export function getCurrentField(): EditingArea | null { + return currentField; +} + +export function getCurrentNoteId(): number | null { + return currentNoteId; +} + export function setFGButton(col: string): void { document.getElementById("forecolor").style.backgroundColor = col; }