fix notes editor changes in the HTML view not being saved until switching back to th enormal view

This commit is contained in:
Kovid Goyal 2023-11-02 16:50:24 +05:30
parent 768aabceb3
commit a45267eaf4
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -283,7 +283,10 @@ class NoteEditor(Editor):
def get_doc(self):
self.editor.referenced_resources = set()
self.editor.searchable_text = ''
idx = self.tabs.currentIndex()
self.tabs.setCurrentIndex(0)
html = self.editor.html
self.tabs.setCurrentIndex(idx)
return html, self.editor.searchable_text, self.editor.referenced_resources, self.editor.images.values()
def export_note(self):