fix switching between HTML/plain composing (#1484752)
| | |
| | | |
| | | 2008/02/12 (estadtherr) |
| | | ---------- |
| | | - fix switching between HTML/plain composing (#1484752) |
| | | - condense TinyMCE toolbar down to one line, removing table buttons (#1484747) |
| | | - fix image removal in message display when message HTML includes JS event handlers |
| | | |
| | |
| | | // determine the currently displayed editor |
| | | |
| | | var htmlFlag = document.getElementsByName('_is_html')[0]; |
| | | var currentEditor = htmlFlag.value; |
| | | var isHtml = htmlFlag.value; |
| | | |
| | | if (selectedEditor == currentEditor) |
| | | if (((selectedEditor == 'plain') && (isHtml == "0")) || |
| | | ((selectedEditor == 'html') && (isHtml == "1"))) |
| | | { |
| | | return; |
| | | } |