Browse Source

Textarea should not use proprietary wrap attribute (#1512681). Original
code used wrap=hard and forced new lines, when long lines are added.
Attribute was switched to wrap=virtual (#495073, v.1.214) in order
to fix spacing issues. wrap=virtual creates unwrapped long lines in
IE, Firefox and Opera. Same happens when attribute is not set.

tokul 19 years ago
parent
commit
ef7a08b7dd
1 changed files with 5 additions and 3 deletions
  1. 5 3
      src/compose.php

+ 5 - 3
src/compose.php

@@ -1193,18 +1193,20 @@ function showInputForm ($session, $values=false) {
         showComposeButtonRow();
         showComposeButtonRow();
     }
     }
 
 
-    /* why this distinction? */
+    /**
+     * When message is compose in new window, different colors are used.
+     */
     if ($compose_new_win == '1') {
     if ($compose_new_win == '1') {
         echo '   <tr>' . "\n" .
         echo '   <tr>' . "\n" .
             '      <td bgcolor="' . $color[0] . '" colspan="2" align="center">' . "\n" .
             '      <td bgcolor="' . $color[0] . '" colspan="2" align="center">' . "\n" .
             '         <textarea name="body" id="body" rows="' . (int)$editor_height .
             '         <textarea name="body" id="body" rows="' . (int)$editor_height .
-            '" cols="' . (int)$editor_size . '" wrap="virtual"' . $onfocus . '>';
+            '" cols="' . (int)$editor_size . '"' . $onfocus . '>';
     }
     }
     else {
     else {
         echo '   <tr>' . "\n" .
         echo '   <tr>' . "\n" .
             '      <td bgcolor="' . $color[4] . '" colspan="2">' . "\n" .
             '      <td bgcolor="' . $color[4] . '" colspan="2">' . "\n" .
             '         &nbsp;&nbsp;<textarea name="body" id="body" rows="' . (int)$editor_height .
             '         &nbsp;&nbsp;<textarea name="body" id="body" rows="' . (int)$editor_height .
-            '" cols="' . (int)$editor_size . '" wrap="virtual"' . $onfocus . '>';
+            '" cols="' . (int)$editor_size . '"' . $onfocus . '>';
     }
     }
 
 
     if ($use_signature == true && $newmail == true && !isset($from_htmladdr_search)) {
     if ($use_signature == true && $newmail == true && !isset($from_htmladdr_search)) {