Issue Bug Closed

#18516headListTags in class.t3lib_parsehtml_proc.php are hardcoded

Steffen Kamper 03/29/08, 17:27 updated 08/06/10, 13:20

Description

the headListTags are hardcoded:
// Static:
var $headListTags = ‘PRE,UL,OL,H1,H2,H3,H4,H5,H6,HR,ADDRESS,DL,DD’; // List of tags for these elements

There is no way to add/remove elements to this list.

With the attached patch it is possible to do that.
Condition: the list should be defined in basic setup of rte, like
RTE.default.proc.headListTags = PRE,UL,OL,H1,H2,H3,H4,H5,H6,HR,ADDRESS,DL,DD

Then this syntax is useful to add a single element:
RTE.default.proc.headListTags := addToList(CODE)

(issue imported from #M7961)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.