Page 1 of 1

Paypal onSubmit disappears

Posted: Wed Mar 24, 2010 10:05 am
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.

Re: Paypal onSubmit disappears

Posted: Wed Mar 24, 2010 5:27 pm
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...

Re: Paypal onSubmit disappears

Posted: Wed Apr 07, 2010 6:47 am
by bDoc
Thanks, I did that and it worked. Is this something that's going to be fixed in a later release?

Re: Paypal onSubmit disappears

Posted: Wed Apr 07, 2010 9:12 pm
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.