mirror of
https://github.com/ankitects/anki.git
synced 2025-11-08 05:37:12 -05:00
fix HTML editor in add screen
This commit is contained in:
parent
0c85397461
commit
8da69c5d39
1 changed files with 2 additions and 1 deletions
|
|
@ -537,6 +537,7 @@ class Editor:
|
||||||
warnings.simplefilter("ignore", UserWarning)
|
warnings.simplefilter("ignore", UserWarning)
|
||||||
html = str(BeautifulSoup(html, "html.parser"))
|
html = str(BeautifulSoup(html, "html.parser"))
|
||||||
self.note.fields[field] = html
|
self.note.fields[field] = html
|
||||||
|
if not self.addMode:
|
||||||
self.note.flush()
|
self.note.flush()
|
||||||
self.loadNote(focusTo=field)
|
self.loadNote(focusTo=field)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue