From 2637a4955b7f372ea04127ef058b306ffae8fbee Mon Sep 17 00:00:00 2001 From: Henrik Giesel Date: Mon, 8 Feb 2021 15:44:56 +0100 Subject: [PATCH] Export current field for editor --- ts/editor/index.ts | 8 ++++++++ 1 file changed, 8 insertions(+) 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; }