mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
improve cloze and latex tag display in RTL environment
https://anki.tenderapp.com/discussions/ankidesktop/24292-mixed-arabic-and-english-words
This commit is contained in:
parent
7ad6966943
commit
b8e306062b
1 changed files with 4 additions and 0 deletions
|
@ -209,6 +209,10 @@ function maybeDisableButtons() {
|
|||
};
|
||||
|
||||
function wrap(front, back) {
|
||||
if (currentField.dir == "rtl") {
|
||||
front = "‫" + front + "‬";
|
||||
back = "‫" + back + "‬";
|
||||
}
|
||||
var s = window.getSelection();
|
||||
var r = s.getRangeAt(0);
|
||||
var content = r.cloneContents();
|
||||
|
|
Loading…
Reference in a new issue