comparison src/browser/sat_browser/editor_widget.py @ 849:d32b754265a0

browser (strings, editor): add javascript version of fixXHTMLLinks and use it for displaying the rich blog messages (add links' missing scheme and open them in new tab)
author souliane <souliane@mailoo.org>
date Fri, 15 Jan 2016 16:34:37 +0100
parents ab87da500820
children fd4eae654182
comparison
equal deleted inserted replaced
848:7dafa5ee809a 849:d32b754265a0
292 text = strings.addURLToImage(text) 292 text = strings.addURLToImage(text)
293 if self.options['enhance_display']: 293 if self.options['enhance_display']:
294 text = strings.addURLToText(text) 294 text = strings.addURLToText(text)
295 if self.CONVERT_NEW_LINES: 295 if self.CONVERT_NEW_LINES:
296 text = html_tools.convertNewLinesToXHTML(text) 296 text = html_tools.convertNewLinesToXHTML(text)
297 text = strings.fixXHTMLLinks(text)
297 self.display.setHTML(text) 298 self.display.setHTML(text)
298 299
299 def setFocus(self, focus): 300 def setFocus(self, focus):
300 raise NotImplementedError 301 raise NotImplementedError
301 302