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/doc_core_api/Introduction-e41faa8263/
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/doc_core_api/Special_Configuratio-1/
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 ## REMAP DIV TAGS TO P TAGS
31 ## For compatibility between Classic RTE and htmlArea RTE
34 ## TAGS ALLOWED OUTSIDE P & DIV
35 allowTagsOutside = hr, address
38 ## 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
39 ## But, for the sake of clarity, we use a complete list in alphabetic order.
40 ## center, font, o:p, strike, sdfield and u will be removed on entry (see below).
41 ## b and i will be remapped on exit (see below).
42 ## Note that the link accessibility feature of htmlArea RTE does insert img tags.
44 a, abbr, acronym, address, blockquote, b, br, caption, center, cite, code, col, colgroup, div, em, font,
45 h1, h2, h3, h4, h5, h6, hr, i, img, li, link, ol, p, pre, q, sdfield,
46 span, strike, strong, sub, sup, table, thead, tbody, tfoot, td, th, tr, tt, u, ul
50 ## Make sure we can set rules on any tag listed in allowTags.
53 ## ALLOWED P & DIV ATTRIBUTES
54 ## Attributes class and align are always preserved
55 ## Align attribute will be unset on entry (see below)
56 ## This is a list of additional attributes to keep
57 keepPDIVattribs = xml:lang
59 ## CONTENT TO DATABASE
60 entryHTMLparser_db = 1
64 ## Always use the same list of allowed tags.
65 allowTags < RTE.default.proc.allowTags
68 ## Make sure we can set rules on any tag listed in allowTags.
71 ## AVOID CONTENT BEING HSC'ed TWICE
77 img.allowedAttribs = 0
78 img.rmTagIfNoAttrib = 1
80 ## CLEAN ATTRIBUTES ON THE FOLLOWING TAGS
81 span.fixAttrib.style.unset = 1
82 p.fixAttrib.align.unset = 1
83 div.fixAttrib.align.unset = 1
84 hr.allowedAttribs = class
85 b.allowedAttribs = xml:lang
86 blockquote.allowedAttribs = xml:lang
87 cite.allowedAttribs = xml:lang
88 em.allowedAttribs = xml:lang
89 i.allowedAttribs = xml:lang
90 q.allowedAttribs = xml:lang
91 strong.allowedAttribs = xml:lang
92 sub.allowedAttribs = xml:lang
93 sup.allowedAttribs = xml:lang
94 tt.allowedAttribs = xml:lang
97 ## REMOVE OPEN OFFICE META DATA TAGS, WORD 2003 TAGS AND DEPRECATED HTML TAGS
98 ## We use this rule instead of the denyTags rule so that we can protect custom tags without protecting these unwanted tags.
99 removeTags = center, font, o:p, sdfield, strike, u
101 ## PROTECT CUSTOM TAGS
102 keepNonMatchedTags = protect
106 ## STRIP ALL ATTRIBUTES FROM THESE TAGS
107 ## 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.
108 ## However, we want to keep xml:lang attribute on most tags and tags from the default list where cleaned on entry.
112 ## Note that applying xhtml_cleaning on exit would break non-standard attributes of typolink tags
116 exitHTMLparser_db = 1
118 ## REMAP B AND I TAGS
119 ## b and i tags are used by Mozilla/Firefox in editing mode.
120 ## This must be done on exit because the default HTMLparser_db parsing executes the reverse mapping.
121 tags.b.remap = strong
125 ## Unwanted tags were removed on entry.
126 ## Without this rule, the parser will remove all tags! Presumably, this rule will be more efficient than repeating the allowTags rule
127 keepNonMatchedTags = 1
129 ## AVOID CONTENT BEING HSC'ed TWICE
134 ## Use same RTE processing rules in FE
135 RTE.default.FE.proc < RTE.default.proc
137 ## RTE processing rules for bodytext column of tt_content table
138 ## Erase settings from other extensions
139 RTE.config.tt_content.bodytext >
141 ## Make sure we use ts_css transformation
142 RTE.config.tt_content.bodytext.proc.overruleMode = ts_css
143 RTE.config.tt_content.bodytext.types.text.proc.overruleMode = ts_css
144 RTE.config.tt_content.bodytext.types.textpic.proc.overruleMode = ts_css