mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
fix notes editor changes in the HTML view not being saved until switching back to th enormal view
This commit is contained in:
parent
768aabceb3
commit
a45267eaf4
@ -283,7 +283,10 @@ class NoteEditor(Editor):
|
|||||||
def get_doc(self):
|
def get_doc(self):
|
||||||
self.editor.referenced_resources = set()
|
self.editor.referenced_resources = set()
|
||||||
self.editor.searchable_text = ''
|
self.editor.searchable_text = ''
|
||||||
|
idx = self.tabs.currentIndex()
|
||||||
|
self.tabs.setCurrentIndex(0)
|
||||||
html = self.editor.html
|
html = self.editor.html
|
||||||
|
self.tabs.setCurrentIndex(idx)
|
||||||
return html, self.editor.searchable_text, self.editor.referenced_resources, self.editor.images.values()
|
return html, self.editor.searchable_text, self.editor.referenced_resources, self.editor.images.values()
|
||||||
|
|
||||||
def export_note(self):
|
def export_note(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user