Changeset 570f0bb in github
- Timestamp:
- Jun 5, 2007 12:19:43 AM (6 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- 8094288
- Parents:
- b2fb950
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
CHANGELOG
rb2fb950 r570f0bb 1 1 CHANGELOG RoundCube Webmail 2 2 --------------------------- 3 4 2007/06/04 (estadtherr) 5 ---------- 6 - Fixed bug in HTML->Plain editor toggling 7 3 8 4 9 2007/05/28 (thomasb) -
index.php
r8d07583 r570f0bb 83 83 require_once('include/main.inc'); 84 84 require_once('include/cache.inc'); 85 require_once('lib/html2text.inc'); 85 86 require_once('PEAR.php'); 86 87 … … 144 145 if ($_action=='error' && !empty($_GET['_code'])) 145 146 raise_error(array('code' => hexdec($_GET['_code'])), FALSE, TRUE); 147 148 149 // handle HTML->text conversion 150 if ($_action=='html2text') 151 { 152 $htmlText = $HTTP_RAW_POST_DATA; 153 $converter = new html2text($htmlText); 154 155 // TODO possibly replace with rcube_remote_response() 156 header('Content-Type: text/plain'); 157 $plaintext = $converter->get_text(); 158 print $plaintext; 159 160 exit; 161 } 146 162 147 163 -
program/js/editor.js
r2c63370 r570f0bb 101 101 http_request.oncomplete = function(o) { rcmail_set_text_value(o); }; 102 102 var url=rcmail.env.comm_path+'&_action=html2text'; 103 console('HTTP request: ' + url);104 103 http_request.POST(url, htmlText, 'application/octet-stream'); 105 104 }
Note: See TracChangeset
for help on using the changeset viewer.
