[wp-trac] [WordPress Trac] #3045: Visual rich editor rewrites form input tags in HTML model

WordPress Trac wp-trac at lists.automattic.com
Wed Aug 16 19:23:43 GMT 2006


#3045: Visual rich editor rewrites form input tags in HTML model
----------------------------+-----------------------------------------------
 Reporter:  bgaspers        |       Owner:  anonymous
     Type:  defect          |      Status:  new      
 Priority:  normal          |   Milestone:           
Component:  Administration  |     Version:           
 Severity:  normal          |    Keywords:           
----------------------------+-----------------------------------------------
 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.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/3045>
WordPress Trac <http://wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list