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
- Forum
- JCE Editor
- Empty tags are being stripped since last update
Support is currently Offline
Official support hours:
Monday To Friday
From 09:00 To 17:00 Europe/London (BST)
From 09:00 To 17:00 Europe/London (BST)
Please post your question in the Forum and we will get back to you as soon as we can.
Hi,
Since the last update of JCE the editor strips empty tags, for example: <a href="whatever"></a> is being stripped once saved. In the previous version this was not the case, since I still have this code running:
<a href="#" class="uk-icon-button uk-icon-angle-double-down" data-uk-toggle="{target:'#toggle-kenmerken'}"></a>
In a joomla module. Luckily I didn't save this module, but I tried to replicate the module. Every time I save it, the code is being stripped.
Anyway to avoid this behaviour? I am using JCE Editor Pro.
Thanks!
Since the last update of JCE the editor strips empty tags, for example: <a href="whatever"></a> is being stripped once saved. In the previous version this was not the case, since I still have this code running:
<a href="#" class="uk-icon-button uk-icon-angle-double-down" data-uk-toggle="{target:'#toggle-kenmerken'}"></a>
In a joomla module. Luckily I didn't save this module, but I tried to replicate the module. Every time I save it, the code is being stripped.
Anyway to avoid this behaviour? I am using JCE Editor Pro.
Thanks!
This is working fine in my tests, including on the demo site - https://demo.joomlacontenteditor.net/
In the Editor Global Configuration, what do you have set for - Verify HTML, Doctype and Pad Empty Tags?
In the Editor Global Configuration, what do you have set for - Verify HTML, Doctype and Pad Empty Tags?
Just because you're not paranoid doesn't mean everybody isn't out to get you.
more than a month ago
·
#92227
Hi Ryan, thanks for helping.
I checked the settings:
Validate HTML > Yes
Doctype > Mixed
Pad Empty Tags > No
I checked again and every time I save a code like this:
It is replaced by: & nbsp ; (but attached of course)
I checked the settings:
Validate HTML > Yes
Doctype > Mixed
Pad Empty Tags > No
I checked again and every time I save a code like this:
<i class="uk-icon-check icongreen"></i>
It is replaced by: & nbsp ; (but attached of course)
more than a month ago
·
#92234
Ok, I found the issue.
Just this code is fine:
But, within a td it is being stripped:
Returns:
So, I guess I found what's causing the issue. But how to resolve this?
Thanks!
Just this code is fine:
<i class="uk-icon-check"></i>
But, within a td it is being stripped:
<table>
<tbody>
<tr>
<td style="text-align: center;"><i class="uk-icon-check"></i></td>
</tr>
</tbody>
</table>
Returns:
<table>
<tbody>
<tr>
<td style="text-align: center;"> </td>
</tr>
</tbody>
</table>
So, I guess I found what's causing the issue. But how to resolve this?
Thanks!
Which version of the editor are you using?
I have tested this on the demo site - https://demo.joomlacontenteditor.net/ - and the empty tag is not being stripped.
I have tested this on the demo site - https://demo.joomlacontenteditor.net/ - and the empty tag is not being stripped.

Just because you're not paranoid doesn't mean everybody isn't out to get you.
more than a month ago
·
#92243
Hi Ryan,
I'm using JCE Editor Pro 2.6.15
Could it have something to do with configuration settings?
I'm using JCE Editor Pro 2.6.15
Could it have something to do with configuration settings?
Please send me a login - https://www.joomlacontenteditor.net/contact/site-login
Just because you're not paranoid doesn't mean everybody isn't out to get you.
more than a month ago
·
#92245
I think it's resolved! I changed Keep non-breaking spaces to Yes, and Pad Empty Tags to Yes in the Global Configuration settings. The empty tags aren't stripped anymore as far as I can see!
- Page :
- 1
There are no replies made for this post yet.
Be one of the first to reply to this post!
Be one of the first to reply to this post!