Opened 12 years ago
Closed 12 years ago
#28217 closed defect (bug) (fixed)
select tag added to each new option line in select list
| Reported by: | John_W_B | Owned by: | azaozz |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.0 |
| Component: | TinyMCE | Version: | 3.9 |
| Severity: | normal | Keywords: | has-patch needs-testing |
| Cc: | Focuses: | javascript |
Description
Steps to reproduce
paste a
select list into Text editor. Switch to Visual.
each
<option>
line gets
<select>
tags automatically added, which breaks the form.
The problem does not arise if the option tags are not separated by line breaks: the line breaks trigger the addition of unwanted select tags (without any wpautop plugin present). The problem did not arise on WP 3.8.
Attachments (3)
Change History (12)
#2
@
12 years ago
- Keywords needs-testing added
- Milestone Awaiting Review → 4.0
Not sure how this worked in MCE 3.x. Also having line breaks inside <select>, adds <p>/<br> on the front end. Don't see a point in preserving the line breaks, better to remove them (MCE will strip all line breaks on getContent() anyways).
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Not sure if this is the best solution, but it fixes it.
This is a 3.9 regression... :(