## Default RTE options
RTE.default {
## MS Word cleaning
enableWordClean = 1
## Remove HTML comments
removeComments = 1
## Remove HTML tags
removeTags = center, font, o:p, sdfield, strike, u
## Remove HTML tags and their content
removeTagsAndContents = style, script
## Remove trailing BR if any
removeTrailingBR = 1
## Tags allowed outside
tags
allowTagsOutside (
address, br, dd, dl, dt, h1, h2, h3, h4, h5, hr, img, li, ol,
pre, table, tr, th, td, ul
)
}
## RTE default processing rules
RTE.default.proc {
## Transformation method
overruleMode = ts_css
## Do not convert br tags into linebreaks
## br tags in the content are assumed to be intentional
dontConvBRtoParagraph = 1
## Remap div tags to p tags
remapParagraphTag = p
## Tags allowed outside
and
tags
allowTagsOutside < RTE.default.allowTagsOutside
## Tags allowed in Typolists
allowTagsInTypolists = a, b, br, i, img, span
## Tags allowed
## Added to the default internal list: b,i,u,a,img,br,div,center,pre,font,hr,sub,sup,p,strong,em,li,ul,ol,blockquote,strike,span
## But, for the sake of clarity, we use a complete list in alphabetic order.
## center, font, o:p, strike, sdfield and u will be removed on entry
allowTags (
a, abbr, acronym, address, blockquote, b, br, caption, cite,
code, dd, div, dl, dt, em, h1, h2, h3, h4, h5, hr, i, img,
li, link, ol, p, pre, q, sdfield, span, strike, strong, sub,
sup, table, thead, tbody, tfoot, td, th, tr, tt, ul
)
## Tags denied
## Make sure we can set rules on any tag listed in allowTags.
denyTags >
## Allowed p & div attributes
keepPDIVattribs = xml:lang, class, style, align
## Keep unknown tags
dontRemoveUnknownTags_db = 1
## Allow tables
preserveTables = 1
## Entry HTML parser
entryHTMLparser_db = 1
entryHTMLparser_db {
## Tags allowed
allowTags < RTE.default.proc.allowTags
## Tags denied
denyTags >
## HTML special characters
htmlSpecialChars = 0
## Allow attributes
tags.span.fixAttrib.style.unset >
tags.p.fixAttrib.align.unset >
tags.div.fixAttrib.align.unset >
## Additionnal attributes for P & DIV
div.allowedAttribs = class,align
p.allowedAttribs = class,align
## Tags to remove
removeTags = center, font, o:p, sdfield, strike, u
## Keep non matched tags
keepNonMatchedTags = protect
## Allow IMG tags
tags.img >
}
## HTML parser
HTMLparser_db {
## Strip attributes
noAttrib = br
## XHTML compliance
xhtml_cleaning = 1
}
## Exit HTML parser
exitHTMLparser_db = 1
exitHTMLparser_db {
## Remap bold and italic
tags.b.remap = strong
tags.i.remap = em
## Keep non matched tags
keepNonMatchedTags = 1
## HTML special character
htmlSpecialChars = 0
}
}
## MS Word clean options
RTE.default.enableWordClean.HTMLparser < RTE.default.proc.entryHTMLparser_db