Enters in text editor are treated differently in latest update - Layout issues

Hi,

In switching from 3.0.4 to 3.1.3, I noticed that ‘enters’ in the text editor are now all converted to
tags. This is messing up layout all over my site, as I like to use shortcodes with enters for readability. Like this:

[visibility]
[content_band]
A bunch of content
[/content_band]
[/visibility]

To be clear, the layout is fine when I use

[visibility][content_band]A bunch of content[/content_band][/visibility]

So the issue arises from how enters/returns are treated.

Can I configure how enters are treated somewhere?

Thanks

Hi @FreekR ,

Thanks for writing in.

It’s Wordpress default behavior, it converts line breaks into HTML line breaks like <br> and <p></p>. You can try that on Wordpress editor without cornerstone and it will be the same. So yes, there should be no line breaks between shortcodes.

Both of these are correct,

[visibility][content_band]A bunch of content[/content_band][/visibility]

and

[visibility][content_band]A bunch of content[/content_band][/visibility]

Line breaks within the text is okay :slight_smile:

But, we’ll do further checking and to confirm this issue.

Thanks!

Hi Rad,

Thanks for your reply.

I downgraded back to the old version and that temporarily solved my issue. So it does seem like there has been a change in cornerstone.

Best, Freek

Hi Freek,

Glad you were able to resolve it by downgrading. We have already forwarded this to our development team for further review.

Thanks for understanding.

Hi there,

The previous version was filtering out the <p> tags added by WordPress around the content bands. We’ve restored this behavior for the next point release.

Great, thanks!

You’re welcome! :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.