[dev] MSIE problems...

AJ aj at mindcrash.com
Mon Feb 9 12:55:18 PST 2004


This may have already been fixed in a recent CVS update???

Quoting Marc Jauvin <marc at register4less.com>:

> 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
> --
> Horde developers mailing list - Join the hunt: http://horde.org/bounties/
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: dev-unsubscribe at lists.horde.org




More information about the dev mailing list