Make WordPress Core

Opened 20 years ago

Closed 20 years ago

#2606 closed defect (bug) (wontfix)

Edits to page containing form data displays some form code in WP edit page itself

Reported by: dasspunk's profile dasspunk Owned by: skeltoac's profile skeltoac
Milestone: Priority: normal
Severity: normal Version: 2.0.2
Component: Administration Keywords: form pages tinymce
Focuses: Cc:

Description

I created a contact page (see code below) and save and everything is fine... but when I go to edit the page again, the last few lines of form code are missing and has become included in the WP edit page itself.

Steps:

  1. Create a page
  2. Enter the contact form code below and save
  3. Edit contact page

Occurs on WP 2.0.2
Occurs in Safari and Firefox (latest)
Does NOT occur on WP 1.5.2

Form Code:

Use this form to email Mike and/or get on his mailing list.
<form name="contact" method="GET" action="form_mail.php" onSubmit="return checkemail(this);">
<p />
Name:<br />
<input type="text" name="name" maxlength="100" size="40"/><br />
E-mail:<br />
<input type="text" name="email" maxlength="200" size="40"/><br />
Subject:<br />
<input type="text" name="subject" maxlength="200" size="49"/><br />
Message:<br />
<textarea name="message" rows="10" cols="50" wrap="virtual"></textarea><br />
<br />
<input type="checkbox" name="add_me" />Add me to Mike&#8217;s Mailing list!</p>
<p />
<input type="submit" value="send it!"/> <input type="reset" value="reset"/><br />
</form>

Change History (6)

#1 @mdawaffe
20 years ago

  • Keywords tinymce added

The problem is the TEXTAREA element.

http://sourceforge.net/tracker/?group_id=103281&atid=635682&func=detail&aid=1155822

This appears to be an unsupported feature of TinyMCE.

You have some options:

  1. Make the TEXTAREA the last element in your form and use CSS to put it back in the right place.
  2. Turn off rich editing whenever you want to edit that page. (Users->Your Profile, @ the bottom)
  3. Create a page template: http://codex.wordpress.org/Pages#Page_Templates

None of these fixes the bug, however. They're just workarounds.

#2 @abhay
20 years ago

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

Since this is a limitation of TinyMCE, I think this falls under the wontfix category.

#3 @markjaquith
20 years ago

  • Resolution wontfix deleted
  • Status changed from closed to reopened

Let's let Andy make the call on this, since he's our TinyMCE expert.

#4 @davidhouse
20 years ago

  • Milestone set to 2.0
  • Owner changed from anonymous to skeltoac
  • Status changed from reopened to new

#5 @davidhouse
20 years ago

  • Milestone 2.0 deleted

Oops.

#6 @skeltoac
20 years ago

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

Valid bug. However, it's not a common concern and you can work around it. I don't see this as something we need to write a bunch of code for.

Note: See TracTickets for help on using tickets.