Opened 19 years ago
Closed 17 years ago
#6490 closed defect (bug) (wontfix)
Shift-enter in <li> causes <p>
| Reported by: | novasource | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | TinyMCE | Version: | 2.3.3 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
If I am in a list item (<li>), and I press shift-enter, the resulting tag should be a <br>.
If I press shift-enter twice, the resulting tags should be <br><br>.
Instead, WordPress is entering <p> tags.
E.g., here's what I should get:
<li>Text text text text. <br> <br>Text text text text.</li>
Instead, I get this:
<li>Text text text text. <p>Text text text text.</p></li>
Change History (7)
#2
in reply to: ↑ 1
@
19 years ago
- Component General → TinyMCE
- Version → 2.3.3
Replying to ionfish:
Surely two newlines should produce this:
<li> <p>Text text text text.</p> <p>Text text text text.</p> </li>
I think that for that to be valid, the default list code would have to be <li><p>Text text text text.</p></li>.
Simply translating shift-enter to <br> seems more straightforward.
#3
@
19 years ago
- Component TinyMCE → General
This is how the js version of wpautop currently works, it sees 2 <br /> as 2 new lines '\n\n', so makes a <p>.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Surely two newlines should produce this: