Make WordPress Core

Opened 13 years ago

Closed 13 years ago

#20381 closed defect (bug) (fixed)

TinyMCE tries to wrap some HTML5 block elements in <p>

Reported by: azaozz's profile azaozz Owned by: azaozz's profile azaozz
Milestone: 3.4 Priority: normal
Severity: normal Version:
Component: TinyMCE Keywords:
Focuses: Cc:

Description

As the title. There is a built-in list of all blocks from XHTML 1.0 and some from HTML 5.0. As HTML 5.0 doesn't have the same clear separation block/inline as earlier versions, that list should preferably include tags that should not be wrapped in <p>.

Change History (2)

#1 @azaozz
13 years ago

Currently this results in strange interaction with wpautop (which "knows" about these tags) and insertion of empty <p> tags on every switch of the editor mode Visual->HTML->Visual.

#2 @azaozz
13 years ago

  • Owner set to azaozz
  • Resolution set to fixed
  • Status changed from new to closed

In [20389]:

Add the "aside,audio,canvas,figcaption,figure,nav,output,video" tags that shouldn't be wrapped in <p> to the internal blocks list in TinyMCE, fixes #20381

Note: See TracTickets for help on using tickets.