mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 07:22:23 -04:00
Export current field for editor
This commit is contained in:
parent
704b5e581a
commit
2637a4955b
1 changed files with 8 additions and 0 deletions
|
@ -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 {
|
export function setFGButton(col: string): void {
|
||||||
document.getElementById("forecolor").style.backgroundColor = col;
|
document.getElementById("forecolor").style.backgroundColor = col;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue