Project

General

Profile

Actions

Bug #18516

closed

headListTags in class.t3lib_parsehtml_proc.php are hardcoded

Added by Steffen Kamper over 16 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2008-03-29
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.2
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

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)


Files

7961_headlisttags.diff (750 Bytes) 7961_headlisttags.diff Administrator Admin, 2008-03-29 17:28
7961_headlisttags2.diff (2.87 KB) 7961_headlisttags2.diff Administrator Admin, 2008-04-01 22:30
Actions

Also available in: Atom PDF