mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
parent
170ab60a52
commit
c0b4b3d0e7
1 changed files with 2 additions and 1 deletions
|
@ -302,7 +302,6 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|||
closeMathjaxEditor?.();
|
||||
$commitTagEdits();
|
||||
saveFieldNow();
|
||||
imageOcclusionMode = undefined;
|
||||
}
|
||||
|
||||
export function saveOnPageHide() {
|
||||
|
@ -400,6 +399,8 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|||
let isIOImageLoaded = false;
|
||||
let imageOcclusionMode: IOMode | undefined;
|
||||
async function setupMaskEditor(options: { html: string; mode: IOMode }) {
|
||||
imageOcclusionMode = undefined;
|
||||
await tick();
|
||||
imageOcclusionMode = options.mode;
|
||||
if (options.mode.kind === "add") {
|
||||
fieldStores[1].set(options.html);
|
||||
|
|
Loading…
Reference in a new issue