- Fix text wrapping in HTML editor after switching from plain text to HTML (#1485521)
| | |
| | | CHANGELOG RoundCube Webmail |
| | | =========================== |
| | | |
| | | - Fix text wrapping in HTML editor after switching from plain text to HTML (#1485521) |
| | | - Fix auto-complete function hangs with plus sign (#1485815) |
| | | - Fix AJAX requests errors handler (#1485000) |
| | | - Speed up message list displaying on IE |
| | |
| | | }); |
| | | } |
| | | |
| | | this.plain2html = function(plainText, id) |
| | | { |
| | | this.set_busy(true, 'converting'); |
| | | $(document.getElementById(id)).val('<pre>'+plainText+'</pre>'); |
| | | this.set_busy(false); |
| | | } |
| | | |
| | | |
| | | /********************************************************/ |
| | | /********* remote request methods *********/ |
| | |
| | | if (ishtml) |
| | | { |
| | | rcmail.display_spellcheck_controls(false); |
| | | var htmlText = "<pre>" + composeElement.value + "</pre>"; |
| | | |
| | | composeElement.value = htmlText; |
| | | rcmail.plain2html(composeElement.value, textAreaId); |
| | | tinyMCE.execCommand('mceAddControl', true, textAreaId); |
| | | if (flagElement && (flag = rcube_find_object(flagElement))) |
| | | flag.value = '1'; |
| | |
| | | margin-top: 2px; |
| | | } |
| | | |
| | | pre |
| | | { |
| | | margin: 0; |
| | | padding: 0; |
| | | white-space: -o-pre-wrap !important; |
| | | white-space: -moz-pre-wrap !important; |
| | | white-space: pre-wrap !important; |
| | | white-space: pre; |
| | | word-wrap: break-word; /* IE (and Safari) */ |
| | | } |