mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -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?.();
|
closeMathjaxEditor?.();
|
||||||
$commitTagEdits();
|
$commitTagEdits();
|
||||||
saveFieldNow();
|
saveFieldNow();
|
||||||
imageOcclusionMode = undefined;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export function saveOnPageHide() {
|
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 isIOImageLoaded = false;
|
||||||
let imageOcclusionMode: IOMode | undefined;
|
let imageOcclusionMode: IOMode | undefined;
|
||||||
async function setupMaskEditor(options: { html: string; mode: IOMode }) {
|
async function setupMaskEditor(options: { html: string; mode: IOMode }) {
|
||||||
|
imageOcclusionMode = undefined;
|
||||||
|
await tick();
|
||||||
imageOcclusionMode = options.mode;
|
imageOcclusionMode = options.mode;
|
||||||
if (options.mode.kind === "add") {
|
if (options.mode.kind === "add") {
|
||||||
fieldStores[1].set(options.html);
|
fieldStores[1].set(options.html);
|
||||||
|
|
Loading…
Reference in a new issue