WYSIWYG changes code when resubmitted

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
Skulks
Forum Members
Forum Members
Posts: 11
Joined: Wed Jul 02, 2008 1:40 pm

WYSIWYG changes code when resubmitted

Post by Skulks »

For me to add a facebook widget/script to a sidebar I turn off WYSIWYG and submit. If I go back into that page and and click submit again (say to add content to the main part of the page) WYSIWYG changes the code and breaks the script.
I've had this problem for a while but its not been a problem I just redo the code. the problem I have now is I want to allow newb users to edit there own page so this isn't viable anymore.

Is there a way for me to stop WYSIWYG from changing it. Each page has its own facebook.

Thanks
Skulks
Forum Members
Forum Members
Posts: 11
Joined: Wed Jul 02, 2008 1:40 pm

Re: WYSIWYG changes code when resubmitted

Post by Skulks »

Sorry forgot server details.

cms version 1.6.9
PHP Version 5.1.6
Linux / Apache
staartmees
Power Poster
Power Poster
Posts: 1049
Joined: Wed Mar 19, 2008 4:54 pm

Re: WYSIWYG changes code when resubmitted

Post by staartmees »

did you place the code between {literal} code {/literal}?
User avatar
frankmanl
Power Poster
Power Poster
Posts: 425
Joined: Sat Jul 12, 2008 3:50 am

Re: WYSIWYG changes code when resubmitted

Post by frankmanl »

Skulks,
First of all: upgrade your CMS - version 1.9.4.1 is already available. And not without reason.
Then you may try to put your code in an HTML block and put a link to that block in your page. Once you created the HTML block you won't have to touch it anymore, and links to HTML blocks are not affected by TinyMCE.

Frank
Post Reply

Return to “The Lounge”