fix HTML editor in add screen

This commit is contained in:
Damien Elmes 2020-05-20 14:59:22 +10:00
parent 3f8a3afb78
commit 1376c829db

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