3beea5e1e4
* Forbid inserting object and iframe tags via PlainTextInput * Add optional browserMode parameter to Editor * Create new ts modules for three editor instances - note-creator for AddCards - browser-editor for the editor in the Browser - reviewer-editor for the EditCurrent * Revert "Forbid inserting object and iframe tags via PlainTextInput" This reverts commit ab90ae8194494d883a1863126496e2d8f332509e. * Refactor browserMode to editorMode * Move new editor variants inside /ts/editor directory * Fix typo
12 lines
347 B
TypeScript
12 lines
347 B
TypeScript
// Copyright: Ankitects Pty Ltd and contributors
|
|
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|
|
|
export function globalExport(globals: Record<string, unknown>): void {
|
|
for (const key in globals) {
|
|
window[key] = globals[key];
|
|
}
|
|
|
|
// but also export as window.anki
|
|
window["anki"] = globals;
|
|
}
|