From fa9edc3daa049e894e76a2034018c4b970bd8e06 Mon Sep 17 00:00:00 2001 From: alecpl Date: Wed, 16 Nov 2011 10:50:36 +0000 Subject: - Don't add PRE tags when switching to html mode and textarea is empty --- program/js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'program') diff --git a/program/js/app.js b/program/js/app.js index c0da94348..254514558 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -5738,7 +5738,7 @@ function rcube_webmail() this.plain2html = function(plainText, id) { var lock = this.set_busy(true, 'converting'); - $(document.getElementById(id)).val('
'+plainText+'
'); + $(document.getElementById(id)).val(plainText ? '
'+plainText+'
' : ''); this.set_busy(false, null, lock); }; -- cgit v1.2.3