[Typo3] RTE with class, style, form, and definition tags allowed

Michael Cannon michael at cannonbose.com
Tue Feb 22 16:23:36 CET 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

It seems that a lot of folks have trouble with the RTE. I'm one of them  
too. What I have below is two years of working with it. The class and  
style tags I only recently got working.

Any recommendations, comments, improvements, critiques, you get the  
idea hopefully, please send them along.

Good luck,

Michael


In root page TSConfig. The allowClasses mimics the classes in  
contentCSS. I haven't tried removing allowedClasses yet to see if  
classes in contentCSS stick around. The newest change is adding  
preserveTags to keep my class and style attributes.

# BOF TSconfig

mod.SHARED.colPos_list = 0,1,2
RTE.default {
   contentCSS = fileadmin/bpminstitute.org/styles.css
   proc {
     remapParagraphTag = 0
     allowTags = table, tbody, tr, th, td, h1, h2, h3, h4, h5, h6, div,  
p, br, span, ul, ol, li, pre, blockquote, strong, em, b, i, u, sub,  
sup, strike, a, img, nobr, hr, center, form, input, select, option,  
textarea, dl, dt, dd, font
     allowedClasses =  
logintext,textfield,textfield10,search,smalltext,smalltextwhite,sectiont 
itles-grey,sectiontitles-red,smalltext-grey,smalltext- 
black,leftnav,more,morelink,home-login,td-lightgrey,copyrighttext,td- 
medgrey,td-darkgrey,td-white,td-red,td-black,memberbox,csc- 
header,float-left,float-right,img-black-border,thin-black- 
border,featured-article-border,align-top,clear,med-black-border,no- 
border
     allowTagsOutside = img, hr, dl
     preserveTables = 1
     preserveTags = class, style
   }
   HTMLparser_rte.allowTags = table, tbody, tr, th, td, h1, h2, h3, h4,  
h5, h6, div, p, br, span, ul, ol, li, pre, blockquote, strong, em, b,  
i, u, sub, sup, strike, a, img, nobr, hr, center, form, input, select,  
option, textarea, dl, dt, dd, font
   HTMLparser_db.allowTags = table, tbody, tr, th, td, h1, h2, h3, h4,  
h5, h6, div, p, br, span, ul, ol, li, pre, blockquote, strong, em, b,  
i, u, sub, sup, strike, a, img, nobr, hr, center, form, input, select,  
option, textarea, dl, dt, dd, font
   disablePCexamples = 1
}

# EOF TSconfig


I also have a template that's more CSS related to remove the CSS code  
from extensions in my end HTML. Additionally, this template adds a few  
more allowed tags to my content elements.

# BOF CSS/Tag Helper Constants
styles.content.links.allowTags = table, tbody, tr, th, td, h1, h2, h3,  
h4, h5, h6, div, p, br, span, ul, ol, li, pre, blockquote, strong, em,  
b, i, u, sub, sup, strike, a, img, nobr, hr, center, form, input,  
select, option, textarea, dl, dt, dd, font
# EOF CSS/Tag Helper Constants


# BOF CSS/Tag Helper Setup
plugin.tx_indexedsearch._CSS_DEFAULT_STYLE >
plugin.tx_newloginbox_pi3._CSS_DEFAULT_STYLE >
plugin.tt_news._CSS_DEFAULT_STYLE >
plugin.tx_quickpoll._CSS_DEFAULT_STYLE >
plugin.tx_quickpoll_pi1._CSS_DEFAULT_STYLE >
plugin.tx_srfeuserregister_pi1._CSS_DEFAULT_STYLE >

lib.parseFunc_RTE.nonTypoTagStdWrap.encapsLines {
   encapsTagList = div,p,pre,h1,h2,h3,h4,h5,h6,dl,form
   addAttributes.P.class >
   nonWrappedTag = p
   wrapNonWrappedLines =
}
# EOF CSS/Tag Helper Setup

- -----
Michael Cannon
Project Manager, Cannon Bose
Email  : michael at cannonbose.com
Tel    : +1 (206) 351-0159         Fax : +1 (802) 609-2776
Web    : http://cannonbose.com     ICQ : 165496335

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iEYEARECAAYFAkIbTnoACgkQrjleKrRzIOGX7ACfaPontazpZ8NDUtgIFFT0WlMt
SgIAn2o7//8mqdQ7qTgJ/o/Vns1ZcKND
=gB0O
-----END PGP SIGNATURE-----




More information about the TYPO3-english mailing list