[TYPO3-core] RFC: #7961: headListTags in class.t3lib_parsehtml_proc.php are hardcoded
Benjamin Mack
benni at typo3.org
Tue Apr 1 13:24:38 CEST 2008
Hey,
+1 after reading. Your patch adds unnecessary tabs in the empty rows,
I'd remove these tabs if I'm gonna commit this one.
Steffen Kamper wrote:
> Hi
>
> This is an SVN patch request.
>
> Type: Bugfix
>
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=7961
>
> Branches: 4.2
>
>
>
> 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)
>
> if not, the list can be replaced with RTE.default.proc.headListTags = ...
>
>
> Additional:
> the naming is not very well, this list prevents wrapping their elements with
> p
>
> vg Steffen
>
>
>
--
greetings,
benni.
-SDG-
More information about the TYPO3-team-core
mailing list