mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 09:16:38 -04:00
Export getEditorField and forEditorField
This commit is contained in:
parent
df1b6976eb
commit
48b276cacc
1 changed files with 2 additions and 2 deletions
|
@ -551,12 +551,12 @@ function adjustFieldAmount(amount: number): void {
|
|||
}
|
||||
}
|
||||
|
||||
function getEditorField(n: number): EditorField | null {
|
||||
export function getEditorField(n: number): EditorField | null {
|
||||
const fields = document.getElementById("fields").children;
|
||||
return (fields[n] as EditorField) ?? null;
|
||||
}
|
||||
|
||||
function forEditorField<T>(
|
||||
export function forEditorField<T>(
|
||||
values: T[],
|
||||
func: (field: EditorField, value: T) => void
|
||||
): void {
|
||||
|
|
Loading…
Reference in a new issue