Line Breaks in Page Content

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
lastname.aaron

Line Breaks in Page Content

Post by lastname.aaron »

Using 1.2.4

When editing a page's content, if WYSIWYG is turned off line break are not preserved. In fact, it would seem all line breaks are removed.

This is a problem for two reasons:
- Javascript can get trashed (even with the {literal} escape)
- The html becomes nearly impossible to comprehend and modify if it's just a glob without any structure.

Is there any way to keep the line breaks in page content?

Thanks.
lastname.aaron

Re: Line Breaks in Page Content

Post by lastname.aaron »

If you go to:

Extensions » TinyMCE WYSIWYG Basic

and select:

Apply source formatting to the output HTML

Then it would seem the first line break is preserved. If there is more then one line break though, only the first one seems to be preserved...
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Line Breaks in Page Content

Post by calguy1000 »

Simple rule, wysiwygs are for customers and content editors.  Website developers shouldn't use them, because they'll be putting things like funky styles and javascript into the content.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Locked

Return to “CMSMS Core”