mirror of
https://github.com/ankitects/anki.git
synced 2025-11-06 12:47:11 -05:00
use isolation characters instead of direction markers in cloze handling
https://anki.tenderapp.com/discussions/ankidesktop/40443-improper-location-of-c1foo-on-ltr-text-in-an-rtl-cloze-field
This commit is contained in:
parent
0c5f22f4ae
commit
e838769d02
1 changed files with 2 additions and 2 deletions
|
|
@ -295,8 +295,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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue