Make WordPress Core

Opened 4 years ago

Last modified 3 years ago

#29956 new defect (bug)

Paragraphs within list items disappear in the editor when switching from text to visual and back

Reported by: brunni Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version: 4.0
Component: Formatting Keywords: needs-patch needs-unit-tests
Focuses: Cc:


On a fresh wordpress 4.0 in the editor when I enter

<ol> <li>a<p>b</p> </ol>


<ol> <li>a

b </ol>

and switch from text to visual and back, I get

<ol> <li>ab</li> </ol>

Change History (4)

This ticket was mentioned in Slack in #core by jorbin. View the logs.

3 years ago

#2 @jorbin
3 years ago

@iseulde - Could you take a look here. I was able to replicate it. It seems to work going into tinymce, but when switching out of tinymce, the paragraph tag is lost.

#3 @iseulde
3 years ago

  • Focuses javascript added
  • Keywords needs-patch needs-unit-tests added
  • Milestone changed from Awaiting Review to Future Release

This is an auto-p bug.

switchEditors._wp_Nop( '<ol><li>a<p>b</p></li></ol>' );



This file really needs some unit tests.

#4 @azaozz
3 years ago

  • Component changed from Editor to Formatting
  • Focuses javascript removed

This is autop problem.

Note: See TracTickets for help on using tickets.