Opened 10 years ago
Closed 6 years ago
#30309 closed defect (bug) (wontfix)
Protect forms in the visual editor
Reported by: | jsruby22 | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.0 |
Component: | TinyMCE | Keywords: | needs-refresh |
Focuses: | Cc: |
Description
I pasted the paypal buy button code in the text of my webpage then when I go to the visual editor it changes the code to make it broken. I'm using the wordpress editor.
Attachments (1)
Change History (9)
#2
@
10 years ago
- Milestone Awaiting Review deleted
- Resolution set to invalid
- Status changed from new to closed
No feedback.
#3
@
10 years ago
- Keywords reporter-feedback removed
- Milestone set to Awaiting Review
- Resolution invalid deleted
- Status changed from closed to reopened
Actually I just tried this. Although it's not broken, we can probably make this a bit better, not just for PayPal forms, but for any form. Maybe we can protect it? Or wrap it in a view? Not sure if we want people to type inside forms.
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top"> <input type="hidden" name="cmd" value="_s-xclick"> <input type="hidden" name="hosted_button_id" value="x"> <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG_global.gif" border="0" name="submit" alt="PayPal – The safer, easier way to pay online."> <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1"> </form>
#4
@
10 years ago
- Summary changed from Paypal button code jumbled to Protect forms in the visual editor
#5
@
10 years ago
- Keywords needs-refresh added
- Milestone changed from Awaiting Review to Future Release
We should adjust the API so the edit button can be removed though.
Note: See
TracTickets for help on using
tickets.
Hi @jsruby22,
Thanks for the report. Could you please give us an example of the code you're inserting or steps to reproduce the issue?