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,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)