Make WordPress Core

Opened 4 years ago

Closed 4 years ago

#18203 closed defect (bug) (fixed)

TinyMCE spits out <div> instead of <p> after <ul> and <ol> lists

Reported by: griffinjt Owned by: azaozz
Milestone: 3.3 Priority: normal
Severity: normal Version: 3.2.1
Component: TinyMCE Keywords: needs-patch
Focuses: Cc:


In WP 3.2.1, if you create a ordered or unordered list in the TinyMCE, after it has been closed, it outputs content afterwards within <div> tags instead of the expected <p> tag. The content should be outputted in a <p> tag instead.

I tested this on a clean install (WP 3.2.1) with two different themes and produced the same result both times.

Change History (8)

#1 @nacin
4 years ago

  • Milestone changed from Awaiting Review to 3.2.2
  • Owner set to azaozz
  • Status changed from new to assigned

I've seen this. Thought it was fixed before 3.2.

#2 @azaozz
4 years ago

Yes, this is fixed in the newer version of TinyMCE. Unfortunately it came out too late for inclusion in 3.2 (we were in RC1) and it's impossible to be backported. The workaround is to type the text as paragraphs first, then convert them to a list leaving the last paragraph as is.

#3 @azaozz
4 years ago

  • Milestone changed from 3.2.2 to 3.3

#4 @travisnorthcutt
4 years ago

  • Summary changed from TinyMCE spits after <div> instead of <p> after <ul> and <ol> lists to TinyMCE spits out <div> instead of <p> after <ul> and <ol> lists

Just fixing a typo in the title.

#5 @azaozz
4 years ago

Closed #18262 as duplicate.

#6 @danielbachhuber
4 years ago

  • Cc d@… added

#7 @danielbachhuber
4 years ago

Is there any chance we could fix this in 3.2.2? I consider it a blocker if you use lists at all; most users unfortunately don't notice the change in markup but it has pretty nasty side effects.

#8 @azaozz
4 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

Should be fixed in [18660], feel free to reopen if that still happens.

Note: See TracTickets for help on using tickets.