Dictionary: fix missing images (#12877)

Pass the dictionary's res directory to Mupdf.openDocumentFromText to allow MuPDF to display images referenced by HTML dictionaries.

Depends on: https://github.com/koreader/koreader-base/pull/2002
Fixes: https://github.com/koreader/koreader/issues/12628
This commit is contained in:
TnS-hun
2024-12-12 21:58:35 +01:00
committed by GitHub
parent 7efd033489
commit f232b0e8e6
4 changed files with 14 additions and 6 deletions

View File

@@ -40,7 +40,7 @@ function ScrollHtmlWidget:init()
html_link_tapped_callback = self.html_link_tapped_callback,
}
self.htmlbox_widget:setContent(self.html_body, self.css, self.default_font_size, self.is_xhtml)
self.htmlbox_widget:setContent(self.html_body, self.css, self.default_font_size, self.is_xhtml, nil, self.html_resource_directory)
self.v_scroll_bar = VerticalScrollBar:new{
enable = self.htmlbox_widget.page_count > 1,