mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Ensure searchable_text and references_resources exist
This commit is contained in:
parent
99478d5209
commit
9250613998
@ -234,6 +234,8 @@ class NoteEditor(Editor):
|
||||
editor_class = NoteEditorWidget
|
||||
|
||||
def get_doc(self):
|
||||
self.editor.referenced_resources = set()
|
||||
self.editor.searchable_text = ''
|
||||
html = self.editor.html
|
||||
return html, self.editor.searchable_text, self.editor.referenced_resources, self.editor.images.values()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user