#3312 closed defect (bug) (fixed)
Capital Z in HTML editor triggers new line
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 2.1 | Priority: | normal |
| Severity: | normal | Version: | 2.1 |
| Component: | Administration | Keywords: | has-patch needs-testing |
| Focuses: | Cc: |
Description
Capital Z in HTML editor triggers new line when you switch to the Visual editor
ENV: WP trunk r6805
REPRO: always
STEPS
- In HTML (quick tag) editor enter
Zebra
- Click Editor (Visual) tab
ACTUAL RESULTS
Test has become:
Z
ebra
ADDITIONAL DETAILS
Entering <a href="http://example.com">ZYX</a> becomes
Z
YX
with those being two links to the same site
Attachments (1)
Change History (6)
Note: See
TracTickets for help on using
tickets.
The following line is the culprit (578 of wp-includes/js/tinymce/plugins/wordpress/editor_plugin.js):
pee = pee.replace(new RegExp('\n*([^\Z]+?)\\n{2}', 'mg'), "<p>$1</p>\n");I don't know how to fix it, because I don't have a clue what that line is supposed to do.