- Don't add PRE tags when switching to html mode and textarea is empty

pull/1/head
alecpl 13 years ago
parent 91e589afde
commit fa9edc3daa

@ -5738,7 +5738,7 @@ function rcube_webmail()
this.plain2html = function(plainText, id)
{
var lock = this.set_busy(true, 'converting');
$(document.getElementById(id)).val('<pre>'+plainText+'</pre>');
$(document.getElementById(id)).val(plainText ? '<pre>'+plainText+'</pre>' : '');
this.set_busy(false, null, lock);
};

Loading…
Cancel
Save