Opened 14 years ago
Closed 14 years ago
#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: | Focuses: |
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)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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.