From 9675702579700124b4309932df6566423ce385ad Mon Sep 17 00:00:00 2001 From: Thomas Bruederli <thomas@roundcube.net> Date: Wed, 29 Jan 2014 04:47:58 -0500 Subject: [PATCH] Fix canned responses in HTML mode (#1489536) --- program/js/app.js | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/program/js/app.js b/program/js/app.js index f4a41e7..5887eb6 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -3396,7 +3396,7 @@ 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 { -- Gitblit v1.9.1