summaryrefslogtreecommitdiff
path: root/program/js/app.js
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2009-04-23 09:56:14 +0000
committeralecpl <alec@alec.pl>2009-04-23 09:56:14 +0000
commit962085baa17a622c83320e27acde0ac06219da39 (patch)
treed2abd4987c0f346f6d23b1b32b5e7ef605850af1 /program/js/app.js
parenteaacbec63100fa8094189273e5c8e56571b0f976 (diff)
- Fix text wrapping in HTML editor after switching from plain text to HTML (#1485521)
Diffstat (limited to 'program/js/app.js')
-rw-r--r--program/js/app.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/program/js/app.js b/program/js/app.js
index 43e0aa984..65b7c835d 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -3789,6 +3789,13 @@ function rcube_webmail()
});
}
+ this.plain2html = function(plainText, id)
+ {
+ this.set_busy(true, 'converting');
+ $(document.getElementById(id)).val('<pre>'+plainText+'</pre>');
+ this.set_busy(false);
+ }
+
/********************************************************/
/********* remote request methods *********/