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.

#109053 Linefeeds being removed from PHP code when surrounded by a div tag

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 ramblerswebs on Tuesday, 12 October 2021 12:15 BST

ramblerswebs
I have a custom module containing some normal text but also some PHP code.
The code is executed with DirectPHP.

When I add a div around the whole thing I find that switching between the code and editor tabs of JCE removes all the linefeeds in the PHP code.

Attached are views of

the code without the div in the Editor tab

the code with the div in Code tab

and lastly the code with the div when you go into the Editor tab


Am I missing something or is this a bug

Any help gratefully receieved

Attachments

Ryan
Please send me a login - https://www.joomlacontenteditor.net/contact/site-login

Ryan Demmer

Lead Developer / CEO / CTO

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

Ryan
Please try JCE Pro 2.9.17 Beta 6 - 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
Thanks
that has solved the problem.