Textarea should not use proprietary wrap attribute (#1512681). Original
authortokul <tokul@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 2 Jul 2006 10:03:37 +0000 (10:03 +0000)
committertokul <tokul@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 2 Jul 2006 10:03:37 +0000 (10:03 +0000)
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.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11340 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/compose.php

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