| | |
| | | theme_advanced_buttons1 : 'bold,italic,underline,strikethrough,justifyleft,justifycenter,justifyright,justifyfull,separator,outdent,indent,charmap,hr,link,unlink,code,forecolor', |
| | | theme_advanced_buttons2 : ',fontselect,fontsizeselect', |
| | | theme_advanced_buttons3 : '', |
| | | relative_urls : false, |
| | | remove_script_host : false, |
| | | gecko_spellcheck : true |
| | | }); |
| | | else // mail compose |
| | |
| | | external_image_list_url : 'program/js/editor_images.js', |
| | | spellchecker_languages : (rcmail.env.spellcheck_langs ? rcmail.env.spellcheck_langs : 'Dansk=da,Deutsch=de,+English=en,Espanol=es,Francais=fr,Italiano=it,Nederlands=nl,Polski=pl,Portugues=pt,Suomi=fi,Svenska=sv'), |
| | | gecko_spellcheck : true, |
| | | rc_client: rcube_webmail_client, |
| | | relative_urls : false, |
| | | remove_script_host : false, |
| | | rc_client: rcmail, |
| | | oninit : 'rcmail_editor_callback' |
| | | }); |
| | | } |
| | |
| | | |
| | | if (ishtml) |
| | | { |
| | | var existingPlainText = composeElement.value; |
| | | var htmlText = "<pre>" + existingPlainText + "</pre>"; |
| | | |
| | | rcmail.display_spellcheck_controls(false); |
| | | composeElement.value = htmlText; |
| | | |
| | | rcmail.plain2html(composeElement.value, textAreaId); |
| | | tinyMCE.execCommand('mceAddControl', true, textAreaId); |
| | | if (flagElement && (flag = rcube_find_object(flagElement))) |
| | | flag.value = '1'; |