[TYPO3-core] RFC: #7961: headListTags in class.t3lib_parsehtml_proc.php are hardcoded
Steffen Kamper
steffen at sk-typo3.de
Tue Apr 1 22:31:39 CEST 2008
"Steffen Kamper" <steffen at sk-typo3.de> schrieb im Newsbeitrag
news:mailman.1.1207046402.2316.typo3-team-core at lists.netfielders.de...
> 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
>
i renamed "headListTags" to "blockElementList" because this wording says
what it is. So it's bit easier to understand rte configuration.
As this is an important step to get it configurable, it shouldn't be the
last one. By reading the parser-class there has to be a rewrite for future
because many hardcoded tags and may be unnecessary switches.
New patch is attached.
vg Steffen
begin 666 7961_headlisttags2.diff
M26YD97 at Z('0S;&EB+V-L87-S+G0S;&EB7W!A<G-E:'1M;%]P<F]C+G!H< T*
M/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]
M/3T]/3T]/3T]/3T]/3T]/3T]/3T]/0T*+2TM('0S;&EB+V-L87-S+G0S;&EB
M7W!A<G-E:'1M;%]P<F]C+G!H< DH<F5V:7-I;VX@,S0Y.2D-"BLK*R!T,VQI
M8B]C;&%S<RYT,VQI8E]P87)S96AT;6Q?<')O8RYP:' )*'=O<FMI;F<@8V]P
M>2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4W!L:70@/2 D=&AI<RT^<W!L:71);G1O0FQO8VLH)U1!
M0DQ%+$),3T-+455/5$4L5%E03TQ)4U0L5%E03TA%040L)RXH)'1H:7,M/G!R
M;V-/<'1I;VYS6R=P<F5S97)V941)5E-E8W1I;VYS)UT_)T1)5BPG.B<G*2XD
M=&AI<RT^:&5A9$QI<W1486=S+"1V86QU92D["BL)"21B;&]C:U-P;&ET(#T@
M)'1H:7,M/G-P;&ET26YT;T)L;V-K*"=404),12Q"3$]#2U%53U1%+%194$],
M25-4+%194$](14%$+"<N*"1T:&ES+3YP<F]C3W!T:6]N<ULG<')E<V5R=F5$
M259396-T:6]N<R==/R=$258L)SHG)RDN)'1H:7,M/F)L;V-K16QE;65N=$QI
M<W0L)'9A;'5E*3L*( H@"0D)+R\@5')A=F5R<V4@=&AE(&)L;V-K<PH@"0EF
M;W)E86-H*"1B;&]C:U-P;&ET(&%S("1K(#T^("1V*0E["D! ("TQ,# Q+#<@
M*S$P,#8L-R! 0 T*( D)"7T at 96QS92!["2\O($Y/3BUB;&]C:SH*( D)"0DD
M;F5X=$943B ]("1T:&ES+3YG971&:7)S=%1A9TYA;64H)&)L;V-K4W!L:71;
M)&LK,5TI.PH@"0D)"21S:6YG;&5,:6YE0G)E86L@/2 D8FQO8VM3<&QI=%LD
M:UT]/6-H<B at Q,"D["BT)"0D):68@*'0S;&EB7V1I=CHZ:6Y,:7-T*"=404),
M12Q"3$]#2U%53U1%+%194$],25-4+%194$](14%$+"<N*"1T:&ES+3YP<F]C
M3W!T:6]N<ULG<')E<V5R=F5$259396-T:6]N<R==/R=$258L)SHG)RDN)'1H
M:7,M/FAE861,:7-T5&%G<RPD;F5X=$943BDI"7L)+R\@4F5M;W9I;F<@;&EN
M96)R96%K(&EF('1Y<&]L:7-T+W1Y<&]H96%D"BL)"0D):68@*'0S;&EB7V1I
M=CHZ:6Y,:7-T*"=404),12Q"3$]#2U%53U1%+%194$],25-4+%194$](14%$
M+"<N*"1T:&ES+3YP<F]C3W!T:6]N<ULG<')E<V5R=F5$259396-T:6]N<R==
M/R=$258L)SHG)RDN)'1H:7,M/F)L;V-K16QE;65N=$QI<W0L)&YE>'1&5$XI
M*0E["2\O(%)E;6]V:6YG(&QI;F5B<F5A:R!I9B!T>7!O;&ES="]T>7!O:&5A
M9 H@"0D)"0DD8FQO8VM3<&QI=%LD:UT@/2!E<F5G7W)E<&QA8V4H8VAR*#$P
M*2XG6R!=*B0G+"<G+"1B;&]C:U-P;&ET6R1K72D["B )"0D)?0H@"0D)"0DO
M+R!)9B D8FQO8VM3<&QI=%LD:UT@:7, at 8FQA;FL@=&AE;B!U;G-E="!T:&4@
M;&EN92X at 54Y,15-3('1H92!L:6YE(&AA<'!E;F0@=&\@8F4 at 82!S:6YG;&4@
,;&EN92!B<F5A:RX*
`
end
More information about the TYPO3-team-core
mailing list