mirror of
https://github.com/ankitects/anki.git
synced 2025-11-11 15:17:12 -05:00
Ugly fix: do not execute moveCursorPastPostfix when front includes "anki-mathjax"
This commit is contained in:
parent
c30ba6a3f6
commit
88fd31a099
1 changed files with 6 additions and 1 deletions
|
|
@ -38,7 +38,12 @@ export function wrapInternal(
|
||||||
document.execCommand("inserthtml", false, new_);
|
document.execCommand("inserthtml", false, new_);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!span.innerHTML) {
|
if (
|
||||||
|
!span.innerHTML &&
|
||||||
|
/* ugly solution: treat <anki-mathjax> differently than other wraps */ !front.includes(
|
||||||
|
"<anki-mathjax"
|
||||||
|
)
|
||||||
|
) {
|
||||||
moveCursorPastPostfix(selection, back);
|
moveCursorPastPostfix(selection, back);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue