mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -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)
|
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
|
||||||
self.note.flush()
|
if not self.addMode:
|
||||||
|
self.note.flush()
|
||||||
self.loadNote(focusTo=field)
|
self.loadNote(focusTo=field)
|
||||||
|
|
||||||
# Tag handling
|
# Tag handling
|
||||||
|
|
Loading…
Reference in a new issue