summaryrefslogtreecommitdiff
path: root/program/js/app.js
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2014-01-29 10:47:58 +0100
committerThomas Bruederli <thomas@roundcube.net>2014-01-29 10:47:58 +0100
commit9675702579700124b4309932df6566423ce385ad (patch)
treea0dc3e904d8cb4c36ca88e92a3c06c739e35fcb1 /program/js/app.js
parent90dc9b15125b60c000e10006a6b95ad72952ae9e (diff)
Fix canned responses in HTML mode (#1489536)
Diffstat (limited to 'program/js/app.js')
-rw-r--r--program/js/app.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/js/app.js b/program/js/app.js
index f4a41e7f4..5887eb6e6 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -3396,7 +3396,7 @@ function rcube_webmail()
if ($("input[name='_is_html']").val() == '1') {
var editor = tinyMCE.get(this.env.composebody);
editor.getWin().focus(); // correct focus in IE & Chrome
- editor.selection.setContent(insert, { format:'text' });
+ editor.selection.setContent(this.quote_html(insert).replace(/\r?\n/g, '<br/>'), { format:'text' });
}
// replace selection in compose textarea
else {