[TYPO3-core] RFC: #7961: headListTags in class.t3lib_parsehtml_proc.php are hardcoded

Steffen Kamper steffen at sk-typo3.de
Tue Apr 1 12:40:11 CEST 2008


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 


begin 666 7961_headlisttags.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@,S0X,"D-"BLK*R!T,VQI
M8B]C;&%S<RYT,VQI8E]P87)S96AT;6Q?<')O8RYP:' )*'=O<FMI;F<@8V]P
M>2D-"D! ("TR,S0L-R K,C,T+#$R($! #0H@"0D)+R\@26YI=#H*( D))'1H
M:7,M/G!R;V-/<'1I;VYS(#T@)'1H:7-#;VYF:6=;)W!R;V,N)UT["B )"21T
M:&ES+3YP<F5S97)V951A9W,@/2!S=')T;W5P<&5R*&EM<&QO9&4H)RPG+'0S
M;&EB7V1I=CHZ=')I;45X<&QO9&4H)RPG+"1T:&ES+3YP<F]C3W!T:6]N<ULG
M<')E<V5R=F5486=S)UTI*2D["BT**PD)"BL)"0DO+R!D>6YA;6EC(&-O;F9I
M9W5R871I;VX@;V8@:&5A9$QI<W1486=S"BL)"6EF("@D=&AI<RT^<')O8T]P
M=&EO;G-;)VAE861,:7-T5&%G<R==*2!["BL)"0DD=&AI<RT^:&5A9$QI<W14
M86=S(#T@)'1H:7,M/G!R;V-/<'1I;VYS6R=H96%D3&ES=%1A9W,G73L**PD)
M?0HK"0D*( D)"2\O($=E="!P87)A;65T97)S(&9O<B!R=&5?=')A;G-F;W)M
M871I;VXZ"B )"21P(#T@)'1H:7,M/G)T95]P(#T@=#-L:6)?0D5F=6YC.CIG
M9713<&5C0V]N9E!A<F%M971E<G-&<F]M07)R87DH)'-P96-#;VYF6R=R=&5?
>=')A;G-F;W)M)UU;)W!A<F%M971E<G,G72D["B *
`
end



More information about the TYPO3-team-core mailing list