html code formatting lost

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
jorge

html code formatting lost

Post by jorge »

Hello,

i have a problem i could not find any solution on the forum.

steps to reproduce:
1. create new page
2. deactivate WYSIWYG in TinyMCE
3. add some HTML with formatting (containing enter strokes)
4. save page, open another page and go back to the first page
5. deactivate WYSIWYG again
-> all the formatting in the HTML is lost, it's a mess

i guess i have en encoding problem. but i don't know how to solve it. on big pages containing php code this is very annoying.

Thanks a lot for your help!
Jorge

-----------
My System:
CMSMS: 1.8.1
CMSMS default_encoding: utf-8
CMSMS admin_encoding: utf-8
MySQL: 5.1.49-community
DB Collation: utf8_bin
PHP: 5.2.12
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: html code formatting lost

Post by Rolf »

Hello jorge

Welcome at the CMSMS forum.

What you describe is the way a WYSIWYG editor works...
It is made for an non-admin to put in text, images and stuff and not for html code.

If you want to keep the html present you have to switch the WYSIWYG off in the Options tab.

Or you could use a Global Content Block. And call this one in the page.

Hope this helps,

Rolf  :)
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
JohnnyB
Dev Team Member
Dev Team Member
Posts: 731
Joined: Tue Nov 21, 2006 5:05 pm

Re: html code formatting lost

Post by JohnnyB »

you can also disable TinyMCE on that page by using the setting under Options while editing the page. Then TinyMCE will not load again for that page.
"Disable WYSIWYG editor on this page (regardless of template or user settings):"
"The art of life lies in a constant readjustment to our surroundings." -Okakura Kakuzo

--
LinkedIn profile
--
I only speak/write in English so I may not translate well on International posts.
--
User avatar
Charles Butcher
Forum Members
Forum Members
Posts: 103
Joined: Sat Jul 05, 2008 8:25 pm

Re: html code formatting lost

Post by Charles Butcher »

Rolf wrote: What you describe is the way a WYSIWYG editor works...
It is made for an non-admin to put in text, images and stuff and not for html code.
I think that might be a misunderstanding of Jorge's question. As I understand it, he's putting the HTML into the non-WYSIWYG window you get when you uncheck the WYSIWYG option beneath the standard TinyMCE window.

@Jorge: I tried what you describe, but the HTML formatting was preserved. Sorry I can't help further.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: html code formatting lost

Post by Dr.CSS »

You can turn tiny off using the tick under it, only problem I found was it turns itself back on at the last second when you submit the page, I use the setting in tiny admin to have tiny not auto start when page opens which will let you turn it back on using the tick under it if needed this will preserve any HTML formatting etc., altho I don't recommend putting a lot of HTML in tiny...
Locked

Return to “CMSMS Core”