| | |
| | | apply_source_formatting : true, |
| | | theme : 'advanced', |
| | | plugins : 'emotions,media,nonbreaking,table,searchreplace,spellchecker,visualchars', |
| | | theme_advanced_buttons1 : 'bold,italic,underline,separator,strikethrough,justifyleft,justifycenter,justifyright,justifyfull,separator,bullist,numlist,outdent,indent,separator,forecolor,backcolor,formatselect,fontselect,fontsizeselect', |
| | | theme_advanced_buttons2 : 'undo,redo,image,media,hr,link,unlink,emotions,charmap,code,nonbreaking,visualchars,separator,search,replace,spellchecker,separator,tablecontrols', |
| | | theme_advanced_buttons1 : 'bold,italic,underline,strikethrough,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,bullist,numlist,outdent,indent,separator,link,unlink,emotions,forecolor,backcolor,formatselect,fontselect,fontsizeselect', |
| | | theme_advanced_buttons2 : 'undo,redo,image,media,hr,charmap,code,nonbreaking,visualchars,separator,search,replace,spellchecker,separator,tablecontrols', |
| | | theme_advanced_buttons3 : '', |
| | | theme_advanced_toolbar_location : 'top', |
| | | theme_advanced_toolbar_align : 'left', |
| | |
| | | |
| | | http_request.onerror = function(o) { rcmail_handle_toggle_error(o); }; |
| | | http_request.oncomplete = function(o) { rcmail_set_text_value(o); }; |
| | | var url = rcmail.env.bin_path+'html2text.php'; |
| | | console.log('HTTP request: ' + url); |
| | | var url=rcmail.env.comm_path+'&_action=html2text'; |
| | | console('HTTP request: ' + url); |
| | | http_request.POST(url, htmlText, 'application/octet-stream'); |
| | | } |
| | | |
| | | /* |
| | | function old_html2Plain(htmlText) |
| | | { |
| | | var http_request = false; |
| | | if (window.XMLHttpRequest) |
| | | { |
| | | http_request = new XMLHttpRequest(); |
| | | //http_request.overrideMimeType('text/plain'); |
| | | } |
| | | |
| | | if (http_request) |
| | | { |
| | | rcmail.set_busy(true); |
| | | |
| | | http_request.onreadystatechange = function() |
| | | { setTextValue(http_request); }; |
| | | //var url = window.location.protocol + '://' + |
| | | //window.location.host + window.location.pathname + |
| | | //'conv_html.php'; |
| | | |
| | | var url = 'conv_html.php'; |
| | | //alert('calling ' + url); |
| | | var reqbody = 'htmlText=' + htmlText; |
| | | http_request.open('POST', url, true); |
| | | http_request.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); |
| | | http_request.send(reqbody); |
| | | } |
| | | } |
| | | |
| | | */ |
| | | |
| | | function rcmail_set_text_value(httpRequest) |
| | | { |