Paypal onSubmit disappears

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.
Post Reply
bDoc
Forum Members
Forum Members
Posts: 31
Joined: Sun Feb 22, 2009 2:09 am

Paypal onSubmit disappears

Post by bDoc »

I've taken simple button code from paypal and dropped it in the edit window and did a check on a required field using javascript. The javascript works fine. The problem is whenever I open up the html editor (TinyMCE) and add the paypal code it does not save the onSubmit call so it can't do the validation Can anyone help me please?


Here's my process.
1. Open up the html editor
2. Paste this code (this is the first line):
3. Click Update
4. Open the editor window and my code looks like this: [/b]


The onSubmit is completely disappeared. ???

Thanks in advance to anyone who can shed some light on this behavior.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Paypal onSubmit disappears

Post by Dr.CSS »

The editor will strip some html tags etc. from things like that, put it in a GCB with no tiny at all then call GCB in Content: box...
bDoc
Forum Members
Forum Members
Posts: 31
Joined: Sun Feb 22, 2009 2:09 am

Re: Paypal onSubmit disappears

Post by bDoc »

Thanks, I did that and it worked. Is this something that's going to be fixed in a later release?
tyman00
Power Poster
Power Poster
Posts: 906
Joined: Tue Oct 24, 2006 5:59 pm

Re: Paypal onSubmit disappears

Post by tyman00 »

The problem is TinyMCE tries to be smart about what it keeps in the tags and what it doesn't. For the most part it assumes you are doing basic functions only.. if you are doing advanced stuff it would assume you would just do it in plain text instead of with a GUI.

Because it is designed to strip out the stuff that might cause issues it can strip out some important things. It is tough to be able to include every possibility out there so I think this is a situation where you have to file it as a "behaving as designed" issue not a bug. So to answer your question,  No I don't think it will be fixed.
If all else fails, use a bigger hammer.
M@rtijn wrote: This is a community. This means that we work together and have the same goal (a beautiful CMS), not that we try to put people down and make their (voluntary) job as difficult as can be.
Post Reply

Return to “CMSMS Core”