Make WordPress Core

Opened 5 years ago

Last modified 18 months ago

#34254 new defect (bug)

Bug when using the HTML Tag "<progress></progress>" (only when switching to Visual Editor)

Reported by: Sprax2013 Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.3.1
Component: Editor Keywords:
Focuses: Cc:


When I go to Text (in Editor) and write use "<progress>" from HTML to create a Progress Bar, it will be displayed on the Webside. But when I edit it agan or switch to Visual (in Editor) the progrss-Tag will be removed and when saving also on website. Please Fix or create a nice Addon

Change History (1)

#1 @swissspidy
5 years ago

The visual editor only allows for a limited set of HTML elements. <progress> is kinda unusual and probably not allowed by default in TinyMCE. This sounds reasonable to me, as the <progress> alone isn't very useful.

You can hook into the tiny_mce_before_init filter to modify the extended_valid_elements setting.

Note: See TracTickets for help on using tickets.