#20381 closed defect (bug) (fixed)

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

Reported by: azaozz Owned by: azaozz
Priority: normal Milestone: 3.4
Component: TinyMCE Version:
Severity: normal Keywords:
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)

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.

  • 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.