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 Online

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

#106077 Additional P tags around PHP block every time I save

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 Wednesday, 09 December 2020 14:41 GMT

ramblerswebs
I'm using JCE Pro 2.9.1
When I save an article with a PHP block within it the save options adds an extra P tag before and after the PHP code.

So if I have one P tag before and after the PHP and then save the article twice I end up with three P tags before and after.

Can I stop this?

Ryan
This is working OK in my tests. Please try JCE Pro 2.9.2 Beta 14 - https://www.joomlacontenteditor.net/downloads/editor/pro/development

Ryan Demmer

Lead Developer / CEO / CTO

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

ramblerswebs
Hi
I tried that and it is much better, the <p> tags do not multiply each time you save and hence the page display is fine.

However if you look at the Code tab I am now getting <br /> tags multiplying

Attachments

ramblerswebs
Further testing seems to show that is I type in the PHP lines then everything is fine.
If I cut and paste them JCE displays them differently.
In the two images the first Hello World was typed and the second I used cut and paste
The first image is the editor view and the other is the code view

Attachments

Ryan
Please try JCE Pro 2.9.2 RC - https://www.joomlacontenteditor.net/downloads/editor/pro/development

Ryan Demmer

Lead Developer / CEO / CTO

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