1 # ***************************************************************************************
2 # Default proc options in Page TSconfig for htmlArea RTE and Classic RTE
4 # Sets the proc options for all default configurations.
6 # Assumptions: - CSS Styled Content is installed.
7 # - XHTML output is expected.
9 # For documentation of RTE tranformations, see: http://typo3.org/documentation/document-library/core-documentation/doc_core_api/4.1.0/view/5/2/
10 # For documentation of Page TSConfig configuration of RTE processing, see: http://typo3.org/documentation/document-library/doc_core_api/Page_TSconfig/
11 # For documentation of the HTMLparser, see: http://typo3.org/documentation/document-library/doc_core_tsref/HTMLparser/
12 # For documentation of RTE settings in TCA, see: http://typo3.org/documentation/document-library/core-documentation/doc_core_api/4.1.0/view/4/3/#id3665895
14 # @author Stanislas Rolland <stanislas.rolland(arobas)fructifor.ca>
17 # ***************************************************************************************
19 ## Default RTE processing rules
22 ## TRANSFORMATION METHOD
23 ## We assume that CSS Styled Content is used.
26 ## DO NOT CONVERT BR TAGS INTO LINEBREAKS
27 ## br tags in the content are assumed to be intentional.
28 dontConvBRtoParagraph = 1
30 ## PRESERVE DIV SECTIONS - DO NOT REMAP TO P
31 preserveDIVSections = 1
33 ## TAGS ALLOWED OUTSIDE P & DIV
34 allowTagsOutside = hr, address
37 ## 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
38 ## But, for the sake of clarity, we use a complete list in alphabetic order.
39 ## center, font, o:p, strike, sdfield and u will be removed on entry (see below).
40 ## b and i will be remapped on exit (see below).
41 ## Note that the link accessibility feature of htmlArea RTE does insert img tags.
43 a, abbr, acronym, address, b, bdo, big, blockquote, br, caption, center, cite, code, col, colgroup, del, dfn, div, em, font,
44 h1, h2, h3, h4, h5, h6, hr, i, img, ins, kbd, label, li, link, ol, p, pre, q, samp, sdfield, small,
45 span, strike, strong, sub, sup, table, thead, tbody, tfoot, td, th, tr, tt, u, ul, var
49 ## Make sure we can set rules on any tag listed in allowTags.
52 ## ALLOWED P & DIV ATTRIBUTES
53 ## Attributes class and align are always preserved
54 ## Align attribute will be unset on entry (see below)
55 ## This is a list of additional attributes to keep
56 keepPDIVattribs = id, title, dir, lang, xml:lang
58 ## CONTENT TO DATABASE
59 entryHTMLparser_db = 1
63 ## Always use the same list of allowed tags.
64 allowTags < RTE.default.proc.allowTags
67 ## Make sure we can set rules on any tag listed in allowTags.
70 ## AVOID CONTENT BEING HSC'ed TWICE
76 img.allowedAttribs = 0
77 img.rmTagIfNoAttrib = 1
79 ## CLEAN ATTRIBUTES ON THE FOLLOWING TAGS
80 span.fixAttrib.style.unset = 1
82 allowedAttribs = id, title, dir, lang, xml:lang, class
83 fixAttrib.align.unset = 1
86 hr.allowedAttribs = class
87 b.allowedAttribs = id, title, dir, lang, xml:lang, class
88 bdo.allowedAttribs = id, title, dir, lang, xml:lang, class
89 big.allowedAttribs = id, title, dir, lang, xml:lang, class
90 blockquote.allowedAttribs = id, title, dir, lang, xml:lang, class
91 cite.allowedAttribs = id, title, dir, lang, xml:lang, class
92 code.allowedAttribs = id, title, dir, lang, xml:lang, class
93 del.allowedAttribs = id, title, dir, lang, xml:lang, class
94 dfn.allowedAttribs = id, title, dir, lang, xml:lang, class
95 em.allowedAttribs = id, title, dir, lang, xml:lang, class
96 i.allowedAttribs = id, title, dir, lang, xml:lang, class
97 ins.allowedAttribs = id, title, dir, lang, xml:lang, class
98 kbd.allowedAttribs = id, title, dir, lang, xml:lang, class
99 label.allowedAttribs = id, title, dir, lang, xml:lang, class
100 q.allowedAttribs = id, title, dir, lang, xml:lang, class
101 samp.allowedAttribs = id, title, dir, lang, xml:lang, class
102 small.allowedAttribs = id, title, dir, lang, xml:lang, class
103 strong.allowedAttribs = id, title, dir, lang, xml:lang, class
104 sub.allowedAttribs = id, title, dir, lang, xml:lang, class
105 sup.allowedAttribs = id, title, dir, lang, xml:lang, class
106 tt.allowedAttribs = id, title, dir, lang, xml:lang, class
107 var.allowedAttribs = id, title, dir, lang, xml:lang, class
110 ## REMOVE OPEN OFFICE META DATA TAGS, WORD 2003 TAGS AND DEPRECATED HTML TAGS
111 ## We use this rule instead of the denyTags rule so that we can protect custom tags without protecting these unwanted tags.
112 removeTags = center, font, o:p, sdfield, strike, u
114 ## PROTECT CUSTOM TAGS
115 keepNonMatchedTags = protect
119 ## STRIP ALL ATTRIBUTES FROM THESE TAGS
120 ## If this list of tags is not set, it will default to: b,i,u,br,center,hr,sub,sup,strong,em,li,ul,ol,blockquote,strike.
121 ## However, we want to keep xml:lang attribute on most tags and tags from the default list where cleaned on entry.
125 ## Note that applying xhtml_cleaning on exit would break non-standard attributes of typolink tags
129 exitHTMLparser_db = 1
131 ## REMAP B AND I TAGS
132 ## b and i tags are used by Mozilla/Firefox in editing mode.
133 ## This must be done on exit because the default HTMLparser_db parsing executes the reverse mapping.
134 tags.b.remap = strong
138 ## Unwanted tags were removed on entry.
139 ## Without this rule, the parser will remove all tags! Presumably, this rule will be more efficient than repeating the allowTags rule
140 keepNonMatchedTags = 1
142 ## AVOID CONTENT BEING HSC'ed TWICE
147 ## Use same RTE processing rules in FE
148 RTE.default.FE.proc < RTE.default.proc
150 ## RTE processing rules for bodytext column of tt_content table
151 ## Erase settings from other extensions
152 RTE.config.tt_content.bodytext >
154 ## Make sure we use ts_css transformation
155 RTE.config.tt_content.bodytext.proc.overruleMode = ts_css
156 RTE.config.tt_content.bodytext.types.text.proc.overruleMode = ts_css
157 RTE.config.tt_content.bodytext.types.textpic.proc.overruleMode = ts_css