mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 07:22:23 -04:00
after html edit, focus changed field so it gets saved
This commit is contained in:
parent
b41fc89b71
commit
91d5693bf7
1 changed files with 3 additions and 0 deletions
|
@ -637,6 +637,9 @@ class Editor(object):
|
|||
html = unicode(BeautifulSoup(html))
|
||||
self.note.fields[self.currentField] = html
|
||||
self.loadNote()
|
||||
# focus field so it's saved
|
||||
self.web.setFocus()
|
||||
self.web.eval("focusField(%d);" % self.currentField)
|
||||
|
||||
# Tag handling
|
||||
######################################################################
|
||||
|
|
Loading…
Reference in a new issue