I am trying to us a TTIWDBHTMLEDIT component so that I can edit HTML emails prior to sending.
I have not been able to reproduce this issue.
Can you please provide a ready to use sample project that demonstrates the issue so I can further investigate this?
Sorry I have been busy and not able to get a demo together yet. I thought that maybe upgrading to D2010 and the latest TMS controls would help. I finished upgradding to D2010 and it has not helped. Here is an example of the html that my webdesigner wants to use. If you just post it into the control the first time everything looks good. But it you try to edit it through the control it starts adding a ton of BR's. Anyway here is the html after it has added some BR's. (I will also try to get a demo together.)
<BR><BR><BR><BR><BR><BR><LINK href="https://eweb.oursite.com/assets/images/email/webdesk/email_base.css" rel=stylesheet><BR><BR><BR><CENTER><BR><TABLE id=backgroundTable height="100%" cellSpacing=0 cellPadding=0 width="100%" border=0><BR><TBODY><BR><TR><BR><TD vAlign=top align=middle><BR><TABLE id=templateContainer cellSpacing=0 cellPadding=0 width=600 border=0><BR><TBODY><BR><TR><BR><TD vAlign=top align=middle><BR><!-- // Begin Template Header \\ --><BR><TABLE id=templateHeader cellSpacing=0 cellPadding=0 width=600 border=0><BR><TBODY><BR><TR><BR><TD class=headerContent><BR><BR><!-- // Begin Module: Standard Header Image \\ --><BR><IMG id="headerImage campaign-icon" style="MAX-WIDTH: 600px" src="https://eweb.oursite.com/assets/images/email/webdesk/images/email_initial_approval_header.gif" mc:label="header_image" mc:edit="header_image" mc:allowdesigner mc:allowtext><BR><!-- // End Module: Standard Header Image \\ --><BR><BR></TD><BR></TR><BR></TBODY></TABLE><BR><!-- // End Template Header \\ --><BR></TD><BR></TR><BR><TR><BR><TD vAlign=top align=middle><BR><!-- // Begin Template Body \\ --><BR><TABLE id=templateBody cellSpacing=0 cellPadding=0 width=600 border=0><BR><TBODY><BR><TR><BR><TD class=bodyContent vAlign=top><BR><BR><!-- // Begin Module: Standard Content \\ --><BR><TABLE cellSpacing=0 cellPadding=20 width="100%" border=0><BR><TBODY><BR><TR><BR><TD vAlign=top><BR><DIV mc:edit="std_content00"><BR><H5>Ticket ID **Ticket_ID**<BR>Click **/URLLINK** to view ticket.</H5><BR><STRONG>**User_Name**</STRONG>,<BR><BR><BR><BR><BR>This Ticket is awaiting initial approval from your department.<BR><BR><BR><BR><BR>If you have any questions or comments regarding this, please feel free to contact **Tech_Name**.<BR></DIV><BR></TD><BR></TR><BR><TR><BR><TD><BR><DIV mc:edit="std_content00"><BR>Thank you,<BR><BR>**Tech_Name**<BR><BR>**Tech_Ext**<BR><BR>**Tech_Email**<BR><BR>CommunityCare<BR></DIV><BR></TD><BR></TR><BR></TBODY></TABLE><BR><!-- // End Module: Standard Content \\ --><BR><BR></TD><BR></TR><BR></TBODY></TABLE><BR><!-- // End Template Body \\ --><BR></TD><BR></TR><BR><TR><BR><TD vAlign=top align=middle><BR><!-- // Begin Template Footer \\ --><BR><TABLE id=templateFooter cellSpacing=0 cellPadding=10 width=600 border=0><BR><TBODY><BR><TR><BR><TD class=footerContent vAlign=top><BR><BR><IMG id="footerImage campaign-icon" style="MAX-WIDTH: 600px" src="https://eweb.oursite.com/assets/images/email/webdesk/images/email_initial_approval_footer.gif" mc:label="footer_image" mc:edit="footer_image" mc:allowdesigner mc:allowtext><BR><BR></TD><BR></TR><BR></TBODY></TABLE><BR><!-- // End Template Footer \\ --><BR></TD><BR></TR><BR></TBODY></TABLE><BR><BR><BR></TD><BR></TR><BR></TBODY></TABLE><BR></CENTER><BR><BR><BR><BR><BR><BR><BR>
I have now been able to reproduce this issue.
I am investigating if a fix can be implemented in the IWHTMLEdit control to avoid this behavior.
Great. Then I will hold off on creating the demo until I here from you.
This issue has now been fixed.
The update will be available with the next release of the TMS IW Component Pack.
Any idea when the next release will be? The website says Aug 18th.
With no unexpected issues, this will be Aug 25.
The HTMLEdit will automatically convert the URL in the href attribute to a hyperlink tag.
When you are insterting HTML tags yourself, this can have unexpected results like described above.
OK. I guess I need to learn how to effectively use this component. Basically what is happening is my web designers have created an html template which is saved in the database. A user can select one of these templates as the basis of the email that they are creating. It loads the template into this component and then the user can change or add to this email through the component before sending the email. It seems like this will work good as long as I can adjust the html template to use the correct syntax.
Ok. I found that if I put the following with a BR tag in front then the component will keep the line.