Ensure searchable_text and references_resources exist

This commit is contained in:
Kovid Goyal 2023-09-09 09:08:51 +05:30
parent 99478d5209
commit 9250613998
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -234,6 +234,8 @@ class NoteEditor(Editor):
editor_class = NoteEditorWidget editor_class = NoteEditorWidget
def get_doc(self): def get_doc(self):
self.editor.referenced_resources = set()
self.editor.searchable_text = ''
html = self.editor.html html = self.editor.html
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()