[Typo3] RTE & Classes
Michael Cannon
michael at cannonbose.com
Wed Feb 2 20:56:57 CET 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Peter,
I can get the CSS classes to show in the RTE and even apply then to
selected content in the RTE. However the class attributes seem to
disappear when it shows on the front-end. I needed forms to come
through the RTE; hence the form and its tags added to allowTags.
Any ideas to simplify and improve the following so that things work a
little more smoothly?
One bonus would be a complete removal of font tags. Rather than
changing <font...> into <font..>. How to do this?
Thanks,
Michael
- -------------
In root template setup
lib.parseFunc.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, font, form, input, select,
option, textarea
In root page 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
}
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
}
In a CSS clearer template that's included by the root template
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
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 =
}
- -----------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)
iEYEARECAAYFAkIBMIoACgkQrjleKrRzIOGTvwCgjEZya1tf2/+5SGV2c2Rz3skP
wRMAn3+237gRx2u+XWzNJI77ljGUvlrS
=Abtp
-----END PGP SIGNATURE-----
More information about the TYPO3-english
mailing list