mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 09:16:38 -04:00
remove RTL special case in cloze deletion
https://forums.ankiweb.net/t/erroneous-characters-added-to-rtl-cloze-deletions/2164
This commit is contained in:
parent
85e2db8ab0
commit
4c052e8164
1 changed files with 0 additions and 4 deletions
|
@ -291,10 +291,6 @@ function wrapIntoText(front, back) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function wrapInternal(front, back, plainText) {
|
function wrapInternal(front, back, plainText) {
|
||||||
if (currentField.dir === "rtl") {
|
|
||||||
front = "‫" + front + "‬";
|
|
||||||
back = "‫" + back + "‬";
|
|
||||||
}
|
|
||||||
const s = window.getSelection();
|
const s = window.getSelection();
|
||||||
let r = s.getRangeAt(0);
|
let r = s.getRangeAt(0);
|
||||||
const content = r.cloneContents();
|
const content = r.cloneContents();
|
||||||
|
|
Loading…
Reference in a new issue