Revert "use isolation characters instead of direction markers in cloze handling"

This reverts commit e838769d02.

Caused a regression:

https://anki.tenderapp.com/discussions/ankidesktop/41384-cloze-deletions-in-2125-and-2126
This commit is contained in:
Damien Elmes 2020-05-11 19:25:49 +10:00
parent 7078415405
commit 4e44694136

View File

@ -292,8 +292,8 @@ function wrapIntoText(front, back) {
function wrapInternal(front, back, plainText) {
if (currentField.dir === "rtl") {
front = "⁨" + front + "⁩";
back = "⁨" + back + "⁩";
front = "‫" + front + "‬";
back = "‫" + back + "‬";
}
const s = window.getSelection();
let r = s.getRangeAt(0);