Opened 20 years ago
Closed 19 years ago
#3045 closed defect (bug) (worksforme)
Visual rich editor rewrites form input tags in HTML model
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | |
| Component: | Administration | Keywords: | |
| Focuses: | Cc: |
Description
I was setting up a Wordpress Page and entering raw HTML code directly with the HTML window of the visual rich editor. I was attempting to add the following two tags (among others) to the page:
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but21 .gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<input type="image" border="0" value="Go" name="Submit" src="http://g-images.amazon.com/images/G/01/associates/build-links/ap-search-go-btn .gif" alt="[ Go ]" align="absmiddle" />
Note: spaces added before ".gif" above so text displays in ticket, not the image
However, the visual rich editor stripped out the src and border properties, leaving me with just the alt text on the page for the button:
<input type="image" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<input type="image" value="Go" name="Submit" alt="[ Go ]" align="absmiddle" />
Workaround: If you toggle the "use visual rich editor" preference in your account profile to off, then you can enter and display the original code just fine on a Wordpress Page.
Thus, the visual rich editor appears to be manipulating HTML entered through the HTML editor when it should just completely leave anything entered in that window alone, whether or not you are using the visual rich editor.
Worksforme as of 2.1. You can enter the above code in the HTML editor and switch back and forth between the rich text editor with no problems, and the code will remain in tact.