Skip to content

Commit

Permalink
add rtl fields to editor
Browse files Browse the repository at this point in the history
  • Loading branch information
dae committed Dec 17, 2011
1 parent b3fc9e8 commit 72a01c0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion aqt/editor.py
Expand Up @@ -168,6 +168,7 @@
for (var i=0; i<fonts.length; i++) {
$("#f"+i).css("font-family", fonts[i][0]);
$("#f"+i).css("font-size", fonts[i][1]);
$("#f"+i)[0].dir = fonts[i][2] ? "rtl" : "ltr";
}
}
Expand Down Expand Up @@ -425,7 +426,7 @@ def focus(self):
self.web.setFocus()

def fonts(self):
return [(f['font'], f['size'])
return [(f['font'], f['size'], f['rtl'])
for f in self.note.model()['flds']]

def saveNow(self):
Expand Down

0 comments on commit 72a01c0

Please sign in to comment.