HTML dictionary link support (#3603)

This commit is contained in:
TnS-hun
2018-01-15 23:51:43 +01:00
committed by poire-z
parent d201c04df7
commit b40bc53fc7
5 changed files with 174 additions and 67 deletions

View File

@@ -22,6 +22,7 @@ local ScrollHtmlWidget = InputContainer:new{
htmlbox_widget = nil,
v_scroll_bar = nil,
dialog = nil,
html_link_tapped_callback = nil,
dimen = nil,
width = 0,
height = 0,
@@ -35,6 +36,7 @@ function ScrollHtmlWidget:init()
w = self.width - self.scroll_bar_width - self.text_scroll_span,
h = self.height,
},
html_link_tapped_callback = self.html_link_tapped_callback,
}
self.htmlbox_widget:setContent(self.html_body, self.css, self.default_font_size)