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.

#99000 How to stop JCE removing clear="all"

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 Tuesday, 02 April 2019 11:32 BST

gavhanly
Hi - on the version of JCE I'm currently using (2.6.38 pro) whenever I put in

<br clear="all" />
JCE always changes it to

<p> </p>
When I save. Is there any way around this?

Ryan
There is no "clear" attribute in HTML. Use:

<br style="clear: both;" />

Ryan Demmer

Lead Developer / CEO / CTO

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

gavhanly
Thanks - when I put that in, it changes it to:

<p><br style="clear: both;" /></p>
Is that because I have JCE set to "paragraph container and paragraph on enter"? (I had to set to that to avoid html style rewriting on backspace).

Ryan
Are you trying to clear 2 paragraphs or div elements?

Ryan Demmer

Lead Developer / CEO / CTO

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