WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 3 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:

Description

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)

comment:1 nacin3 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.

comment:2 azaozz3 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.

comment:3 azaozz3 years ago

  • Milestone changed from 3.2.2 to 3.3

comment:4 travisnorthcutt3 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.

comment:5 azaozz3 years ago

Closed #18262 as duplicate.

comment:6 danielbachhuber3 years ago

  • Cc d@… added

comment:7 danielbachhuber3 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.

comment:8 azaozz3 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.