keeping html code formatting

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
AntEater

keeping html code formatting

Post by AntEater »

I'm new to CMSMS and am working on migrating an existing site of semi-static pages over to this cms.  I've been adding pages through the "content->Pages" portion of the admin panel and am starting to really appreciate this CMS.  When I edit the html of a page directly (instead of using the wysiwyg mode), save it and then view the html code again the formatting is all messed up.  I have several large pages where it would be extremely helpful to be able to keep the formatting of the html code preserved between editing sessions.  Is there some way to convince CMSMS to do this for me?  I have searched a bit on the phorums and google but haven't found anything addressing this issue.  Any help is appreciated. 
User avatar
tophers
Forum Members
Forum Members
Posts: 218
Joined: Thu Jun 07, 2007 7:25 pm

Re: keeping html code formatting

Post by tophers »

To keep HTML formatting (or at least to have some formatting - it does change it, but consistently), navigate to Extensions > TinyMCE WSYIWIG Basic. Under the Settings tab you'll find a check box for Apply source formatting to the output HTML. This will make editing the code a whole lot easier.
AntEater

Re: keeping html code formatting

Post by AntEater »

tophers wrote: To keep HTML formatting (or at least to have some formatting - it does change it, but consistently), navigate to Extensions > TinyMCE WSYIWIG Basic. Under the Settings tab you'll find a check box for Apply source formatting to the output HTML. This will make editing the code a whole lot easier.
Well, that helps some.  It throws away my indentation but at least it keeps the carriage returns.
Thanks.

PS. Are there any another editors that can plug into CMSMS besides TinyMCE?
User avatar
tophers
Forum Members
Forum Members
Posts: 218
Joined: Thu Jun 07, 2007 7:25 pm

Re: keeping html code formatting

Post by tophers »

TinyMCE should keep (or at least use) indenting - check a page with some hierarchy to it (like a nasty table, for instance!).

Otherwise, you can try something from here:
http://dev.cmsmadesimple.org/softwarema ... rm_cat=323

I've only used Tiny MCE and FCKEditor, and I have to say I didn't like what FCK did to my content.
Locked

Return to “CMSMS Core”