[dev] MSIE problems...

Marc Jauvin marc at register4less.com
Mon Feb 9 12:33:25 PST 2004


Hi guys,

I have been having reports from my users of problems with the HTML composer, and
I could not nail it down until now... here is waht I found:

If you have the "compose_html" prefs set to true and are using MSIE (on Windows
XP is what I have tested, but could be on other platforms), then the email sent
with HTML composition is all screwed up. BUT, if you DO NOT have this by
default and click on "Switch to HTML" on the compose window, this works fine.

I searched the code, and I found that when using "COMPOSE HTML" as default,
there is a "wrap=hard" that gets added to the <textarea> TAG definition which
seems to break the composition baddly.

So here is a patch that fixes this:

Index: imp/templates/compose/compose.inc
===================================================================
RCS file: /repository/imp/templates/compose/compose.inc,v
retrieving revision 2.264
diff -u -r2.264 compose.inc
--- imp/templates/compose/compose.inc   12 Jan 2004 22:54:36 -0000      2.264
+++ imp/templates/compose/compose.inc   9 Feb 2004 20:27:14 -0000
@@ -425,7 +425,7 @@
   <tr>
     <td class="light" align="right" valign="top"><b><?php echo
Horde::label('message', _("Text")) ?>&nbsp;</b></td>
     <td class="item">
-      <textarea class="composebody" tabindex="<?php echo $tabindex++ ?>"
name="message" id="message" rows="20" cols="<?php echo
$prefs->getValue('wrap_width') ?>"<?php if
($GLOBALS['browser']->isBrowser('msie') && (!isset($_POST['rtemode']) ||
($_POST['rtemode'] != 2))) { echo ' wrap="hard"'; } ?>><?php echo
htmlspecialchars($msg) ?></textarea>
+      <textarea class="composebody" tabindex="<?php echo $tabindex++ ?>"
name="message" id="message" rows="20" cols="<?php echo
$prefs->getValue('wrap_width') ?>"><?php echo htmlspecialchars($msg)
?></textarea>
     </td>
   </tr>




--
Marc Jauvin
http://register4less.com
450-441-5458


More information about the dev mailing list