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:
1 parent
7efd033489
commit
f232b0e8e6
4 files changed
+14
-6
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user