| | |
| | | gecko_spellcheck : true, |
| | | relative_urls : false, |
| | | remove_script_host : false, |
| | | rc_client: rcmail, |
| | | rc_client : rcmail, |
| | | oninit : 'rcmail_editor_callback' |
| | | }); |
| | | } |
| | |
| | | { |
| | | if (rcmail.env.task == 'mail') { |
| | | var editor = tinyMCE.get(rcmail.env.composebody); |
| | | var textarea = editor.getElement(); |
| | | var node = editor.getContentAreaContainer().childNodes[0]; |
| | | if (textarea && node) |
| | | node.tabIndex = textarea.tabIndex; |
| | | if (editor) { |
| | | var textarea = editor.getElement(); |
| | | var node = editor.getContentAreaContainer().childNodes[0]; |
| | | if (textarea && node) |
| | | node.tabIndex = textarea.tabIndex; |
| | | } |
| | | } |
| | | } |
| | | |
| | |
| | | rcmail.display_spellcheck_controls(false); |
| | | |
| | | rcmail.plain2html(composeElement.value, textAreaId); |
| | | tinyMCE.execCommand('mceAddControl', true, textAreaId); |
| | | rcmail_editor_tabindex(); |
| | | tinyMCE.execCommand('mceToggleEditor', false, textAreaId); |
| | | // #1486593 |
| | | setTimeout("rcmail_editor_tabindex();", 500); |
| | | if (flagElement && (flag = rcube_find_object(flagElement))) |
| | | flag.value = '1'; |
| | | } |
| | |
| | | rcmail.html2plain(existingHtml, textAreaId); |
| | | } |
| | | |
| | | tinyMCE.execCommand('mceRemoveControl', true, textAreaId); |
| | | tinyMCE.execCommand('mceToggleEditor', false, textAreaId); |
| | | rcmail.display_spellcheck_controls(true); |
| | | if (flagElement && (flag = rcube_find_object(flagElement))) |
| | | flag.value = '0'; |