Commit 8933c8b2 authored by Jérome Perrin's avatar Jérome Perrin

Add an empty <p> at the beginning of reply body

Otherwise with CKEditor it's not possible to add some text outside of quoted
content
parent 314ccd5b
...@@ -539,7 +539,9 @@ class EmailDocument(TextDocument): ...@@ -539,7 +539,9 @@ class EmailDocument(TextDocument):
if body: if body:
return '> ' + str(body).replace('\n', '\n> ') return '> ' + str(body).replace('\n', '\n> ')
elif self.getContentType() == 'text/html': elif self.getContentType() == 'text/html':
return '<br/><blockquote type="cite">\n%s\n</blockquote>' %\ # XXX we add an empty <p> to be able to enter text before the quoted
# content in CKEditor
return '<p>&nbsp;</p><blockquote type="cite">\n%s\n</blockquote>' %\
self.asStrippedHTML() self.asStrippedHTML()
return '' return ''
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment