Fix #998364 (Comments edit clear issues in single metadata edit)

This commit is contained in:
Kovid Goyal 2012-05-12 21:37:22 +05:30
parent c290e09391
commit 54832c893e

View File

@ -161,8 +161,8 @@ class EditorWidget(QWebView): # {{{
self.page().setContentEditable(True) self.page().setContentEditable(True)
def clear_text(self, *args): def clear_text(self, *args):
self.action_select_all.trigger() self.html = u''
self.action_cut.trigger() self.page().contentsChanged.emit()
def link_clicked(self, url): def link_clicked(self, url):
open_url(url) open_url(url)
@ -627,4 +627,6 @@ if __name__ == '__main__':
w = Editor() w = Editor()
w.resize(800, 600) w.resize(800, 600)
w.show() w.show()
w.html = '<b>testing</b>'
app.exec_()
#print w.html #print w.html