From 962085baa17a622c83320e27acde0ac06219da39 Mon Sep 17 00:00:00 2001 From: alecpl <alec@alec.pl> Date: Thu, 23 Apr 2009 05:56:14 -0400 Subject: [PATCH] - Fix text wrapping in HTML editor after switching from plain text to HTML (#1485521) --- program/js/app.js | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/program/js/app.js b/program/js/app.js index 43e0aa9..65b7c83 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -3789,6 +3789,13 @@ }); } + this.plain2html = function(plainText, id) + { + this.set_busy(true, 'converting'); + $(document.getElementById(id)).val('<pre>'+plainText+'</pre>'); + this.set_busy(false); + } + /********************************************************/ /********* remote request methods *********/ -- Gitblit v1.9.1