Use optgroups in selectorboxes
The page and content type selectors now group their options using --div-- dividers. TCEForm renders them as optically grouped bunches of options, but doesn't use the optgroup tag, which is meant for that.
The attached patch fixes this.
(issue imported from #M6710)
Updated by Benni Mack about 13 years ago
the problem is that empty optgroups are still rendered and this is a serious issue with this one.
TCEFORM.tt_content.CType.removeItems = multimedia,bullets,table,script,upload,div,splash,uploads
does then show an empty optgroup entry, I think we should change this one. We should really fix this for 4.2 final, what do you think?