TinyMCE is messing up my formatting..
Posted: Sat Feb 28, 2009 6:53 pm
Hi,
I'm experiencing this issue - I'm using CMSMS on my site, where the pages mostly consist of source code, which is highlighted with GeSHi (thanks to streever and calguy1000 about that)
Anyway, when I need to insert code in the page I do it as follows - click on the checkbox Turn WISIWYG on/off at the bottom of TinyMCE and for example put this code there:
Then after submitting the page everything is showing up correctly, but when I go to the WISIWYG editor the code is being formatted as follows:
And at the end the page does not show the code correctly. This is very annoying when you have to edit an existing page and you have let's say more than 100 lines of code which formatting is messed up 
Is there any way to fix this? Perhaps using a different editor?
Thanks!
I'm experiencing this issue - I'm using CMSMS on my site, where the pages mostly consist of source code, which is highlighted with GeSHi (thanks to streever and calguy1000 about that)

Anyway, when I need to insert code in the page I do it as follows - click on the checkbox Turn WISIWYG on/off at the bottom of TinyMCE and for example put this code there:
Code: Select all
{geshi lang="php"} {literal}
if ($test) {
echo 1;
}{/literal} {/geshi}
Code: Select all
{geshi lang="php"} {literal} if ($test) { echo 1; }{/literal} {/geshi}

Is there any way to fix this? Perhaps using a different editor?
Thanks!