Page 1 of 1

html code formatting lost

Posted: Thu Aug 26, 2010 2:55 pm
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

Re: html code formatting lost

Posted: Thu Aug 26, 2010 4:12 pm
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  :)

Re: html code formatting lost

Posted: Sat Aug 28, 2010 7:34 pm
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):"

Re: html code formatting lost

Posted: Sat Aug 28, 2010 8:58 pm
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.

Re: html code formatting lost

Posted: Fri Sep 03, 2010 9:10 pm
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...