fix HTML editor in add screen

This commit is contained in:
Damien Elmes 2020-05-20 14:59:22 +10:00
parent 0c85397461
commit 8da69c5d39

View file

@ -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