You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Offline

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

Please create a new Ticket and we will get back to you as soon as we can.

#105648 TD replaced by TBODY

Posted in ‘Editor’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by Ryan on Thursday, 22 October 2020 20:01 BST

gavhanly
I'm having a problem with some HTML tags being stripped out. I'm creating an email - so am using "tables" etc - but when I enter the code like this into the html screen of JCE:

<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-spacing: 0; font-family: sans-serif; color: #333333;">
<tr>
<strong><td style="padding: 0;"><table border="0" align="center" cellpadding="0" cellspacing="0" style="border-spacing: 0; font-family: sans-serif; color: #333333;">
</strong><tr>
<td bgcolor="#ac0000" style="border-radius: 3px; padding: 12px 18px;" align="center">
<a href="https://www.31dover.com/spirits/portofino-gin-50cl.html?utm_source=affiliate&utm_medium=hotdinners&utm_campaign=october" target="_blank" style="font-size: 16px; font-family: Helvetica, Arial, sans-serif; font-weight: bold; color: #ffffff; text-decoration: none; display: inline-block;">ORDER HERE</a></td>
</tr>
</table><strong></td></strong>
</tr>
</table>
JCE then rewrites it when I go back to WYSIWYG mode to:

<table border="0" align="center" cellpadding="0" cellspacing="0" style="border-spacing: 0; font-family: sans-serif; color: #333333;">
<strong><tbody>
</strong><tr>
<td bgcolor="#ac0000" style="border-radius: 3px; padding: 12px 18px;" align="center">
<a href="https://www.31dover.com/spirits/portofino-gin-50cl.html?utm_source=affiliate&utm_medium=hotdinners&utm_campaign=october" target="_blank" style="font-size: 16px; font-family: Helvetica, Arial, sans-serif; font-weight: bold; color: #ffffff; text-decoration: none; display: inline-block;" rel="noopener">ORDER HERE</a></td>
</tr>
<strong></tbody>
</strong></table>
Essentially stripping out the tds, replacing it with tbody and then missing all the spacing elements. Do you know how I can stop this from happening? Note that I do already have doctype set to "mixed"

Ryan
I've tested this on the demo site - https://demo.joomlacontenteditor.net - and the only change is the addition of the <tbody> tag, which is a valid change- https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tbody

<table border="0" style="border-spacing: 0; font-family: sans-serif; color: #333333;">
	<tbody>
		<tr>
			<td style="padding: 0;">
				<table border="0" style="border-spacing: 0; font-family: sans-serif; color: #333333;">
					<tbody>
						<tr>
							<td style="border-radius: 3px; padding: 12px 18px;"><a href="https://www.31dover.com/spirits/portofino-gin-50cl.html?utm_source=affiliate&utm_medium=hotdinners&utm_campaign=october" target="_blank" rel="noopener" style="font-size: 16px; font-family: Helvetica, Arial, sans-serif; font-weight: bold; color: #ffffff; text-decoration: none; display: inline-block;">ORDER HERE</a></td>
						</tr>
					</tbody>
				</table>
			</td>
		</tr>
	</tbody>
</table>

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.