This commit is contained in:
Kovid Goyal 2013-09-01 11:25:25 +05:30
parent dcc9c29431
commit 10d96d43ea

View File

@ -214,7 +214,7 @@ class EditorWidget(QWebView): # {{{
if is_image:
self.exec_command('insertHTML',
'<img src="%s" alt="%s"></img>'%(prepare_string_for_xml(url, True),
prepare_string_for_xml(name or '', True)))
prepare_string_for_xml(name or _('Image'), True)))
elif name:
self.exec_command('insertHTML',
'<a href="%s">%s</a>'%(prepare_string_for_xml(url, True),