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:
Damien Elmes 2020-08-13 19:11:48 +10:00
parent 85e2db8ab0
commit 4c052e8164

View File

@ -291,10 +291,6 @@ function wrapIntoText(front, back) {
}
function wrapInternal(front, back, plainText) {
if (currentField.dir === "rtl") {
front = "‫" + front + "‬";
back = "‫" + back + "‬";
}
const s = window.getSelection();
let r = s.getRangeAt(0);
const content = r.cloneContents();