mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04: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,7 +537,8 @@ class Editor:
|
|||
warnings.simplefilter("ignore", UserWarning)
|
||||
html = str(BeautifulSoup(html, "html.parser"))
|
||||
self.note.fields[field] = html
|
||||
self.note.flush()
|
||||
if not self.addMode:
|
||||
self.note.flush()
|
||||
self.loadNote(focusTo=field)
|
||||
|
||||
# Tag handling
|
||||
|
|
Loading…
Reference in a new issue