Make WordPress Core

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: bgaspers's profile bgaspers 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.

Change History (1)

#1 @johnbillion
19 years ago

  • Resolution set to worksforme
  • Status changed from new to closed

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.

Note: See TracTickets for help on using tickets.