mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
Fix Mathjax can only be pasted once (#2869)
* Fix mathjax can be pasted only once * Update about.py * Update CONTRIBUTORS * fix formatting
This commit is contained in:
parent
884e8dcac5
commit
a5bdb28849
3 changed files with 7 additions and 1 deletions
|
@ -149,7 +149,7 @@ Gustaf Carefall <https://github.com/Gustaf-C>
|
|||
virinci <github.com/virinci>
|
||||
snowtimeglass <snowtimeglass@gmail.com>
|
||||
Ben Olson <github.com/grepgrok>
|
||||
Akash Reddy <github.com/akashreddy03>
|
||||
Akash Reddy <akashreddy2003@gmail.com>
|
||||
Lucio Sauer <watermanpaint@posteo.net>
|
||||
Gustavo Sales <gustavosmendes14@gmail.com>
|
||||
Shawn M Moore <https://github.com/sartak>
|
||||
|
|
|
@ -187,6 +187,7 @@ def show(mw: aqt.AnkiQt) -> QDialog:
|
|||
"Mateusz Wojewoda",
|
||||
"Jarrett Ye",
|
||||
"Gustavo Sales",
|
||||
"Akash Reddy",
|
||||
)
|
||||
)
|
||||
|
||||
|
|
|
@ -17,6 +17,11 @@ function restoreFrameHandles(mutations: MutationRecord[]): void {
|
|||
const frameElement = mutation.target as FrameElement;
|
||||
const framed = frameElement.querySelector(frameElement.frames!) as HTMLElement;
|
||||
|
||||
if (!framed) {
|
||||
frameElement.remove();
|
||||
continue;
|
||||
}
|
||||
|
||||
for (const node of mutation.addedNodes) {
|
||||
if (node === framed || isFrameHandle(node)) {
|
||||
continue;
|
||||
|
|
Loading…
Reference in a new issue