White Space in HTML is Trimmed When Editing Pages

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.
Post Reply
Walkere
Forum Members
Forum Members
Posts: 12
Joined: Sat Oct 13, 2007 11:21 pm

White Space in HTML is Trimmed When Editing Pages

Post by Walkere »

Howdy,

I've noticed that when you edit a content page, all of the white space in the HTML is trimmed out.  This leaves the HTML as one long line if you view the source, or one giant block of text if you try to edit the HTML directly.

My question is:

Is this a function of the WYSIWYG editor I'm using (TinyMCE)?  Or is this something that CMSMS (Version 1.2) does when it puts the content into the database?

Just curious if there's a way to work around this, and I was hoping someone could point me in the right direction.

Thanks,
- Walkere
Image
Walkere
Forum Members
Forum Members
Posts: 12
Joined: Sat Oct 13, 2007 11:21 pm

Re: White Space in HTML is Trimmed When Editing Pages

Post by Walkere »

After some snooping around in the settings of TinyMCE (odd place to look, eh?), I found something that kind of works.

If you check off "Apply Source Formatting to Output HTML," most of the white space is kept intact.

If I start a new line, that new line character remains there.  However, if I add a second new line to add some extra space, that one is trimmed out.

Still a bit annoying, but definitely much more manageable.

- Walkere
Image
Post Reply

Return to “CMSMS Core”