Fix new comments editor not being in editable mode when no initial text is set

This commit is contained in:
Kovid Goyal 2010-12-23 10:32:51 -07:00
parent 05cc3e65cb
commit c7bc6bc980

View File

@ -141,6 +141,9 @@ class EditorWidget(QWebView): # {{{
self.page().setLinkDelegationPolicy(QWebPage.DelegateAllLinks)
self.page().linkClicked.connect(self.link_clicked)
self.setHtml('')
self.page().setContentEditable(True)
def link_clicked(self, url):
open_url(url)