Page 1 of 1

Code View in the editor

Posted: Tue Jul 15, 2008 4:05 pm
by SusanN
Hello,

I like to use the code view when editing some of my content, and when I do I always see a big jumbled mess of the code.  Nothing is separeted or spaced in the way I put it in there. Does that make sense?  For example, instead of seeing this:

Title
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Duis sollicitudin. Aliquam euismod tellus non elit. Donec nibh. Nullam non dui. Aliquam eleifend. Sed condimentum, odio et placerat hendrerit, metus nisl consectetuer quam, vel luctus diam nulla vel ipsum. Aliquam ultricies, magna sed ornare placerat, urna leo tristique velit, eget commodo felis dolor sed diam. Nullam accumsan nibh quis quam.

I see this:

TitleLorem ipsum dolor sit amet, consectetuer adipiscing elit. Duis sollicitudin. Aliquam euismod tellus non elit. Donec nibh. Nullam non dui. Aliquam eleifend. Sed condimentum, odio et placerat hendrerit, metus nisl consectetuer quam, vel luctus diam nulla vel ipsum. Aliquam ultricies, magna sed ornare placerat, urna leo tristique velit, eget commodo felis dolor sed diam. Nullam accumsan nibh quis quam.

Which doesn't look bad now, but when you get more headings, paragraphs, and add some unordered/ordered lists, it gets confusing!  I thought it was just the way it was meant to be until I just logged into the demo.  All of that code in the editor stays put.  Is there something I should be adding to my CSS to make it work like that?

And speaking of the demo, I'm wondering why the TinyMCE editor isn't working.  I was hoping it would be since a new client of mine would like to see how everything works in CMS MS.

Re: Code View in the editor

Posted: Tue Jul 15, 2008 4:13 pm
by scooper
There's an option for TinyMCE to prettify the source code.

Go to Extensions->TinyMCE WYSIWYG and then on the 'Settings' tab you'll see a checkbox for
'Apply source formatting to the output HTML:'

I suppose it's turned off by default since it's a extra overhead, but frankly one of the first things I do on a fresh install is to make sure it's on.

s.

Re: Code View in the editor

Posted: Tue Jul 15, 2008 4:17 pm
by SusanN
Thank you!!!!  I have done 7 CMS MS sites (and 3 more are in the works) and I never knew that!  I am a happy girl.  ;D

Re: Code View in the editor

Posted: Wed Jul 16, 2008 2:33 am
by jmcgin51
Thank you, Scooper!!  I also never knew what that option did.  You made my night!  (doesn't take much... ;-) )