5a44ce1c71e835693eea3c2837a38fb7e84d7020
[Packages/TYPO3.CMS.git] / typo3 / sysext / rtehtmlarea / Configuration / PageTS / Proc / pageTSConfig.txt
1 # ***************************************************************************************
2 # Default proc options in Page TSconfig for htmlArea RTE and Classic RTE
3 #
4 # Sets the proc options for all default configurations.
5 #
6 # Assumptions: - CSS Styled Content is installed.
7 # - XHTML output is expected.
8 #
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
13 #
14 # @author Stanislas Rolland <stanislas.rolland(arobas)fructifor.ca>
15 # ***************************************************************************************
16
17 ## Default RTE processing rules
18 RTE.default.proc {
19
20 ## TRANSFORMATION METHOD
21 ## We assume that CSS Styled Content is used.
22 overruleMode = ts_css
23
24 ## DO NOT CONVERT BR TAGS INTO LINEBREAKS
25 ## br tags in the content are assumed to be intentional.
26 dontConvBRtoParagraph = 1
27
28 ## PRESERVE DIV SECTIONS - DO NOT REMAP TO P
29 preserveDIVSections = 1
30
31 ## TAGS ALLOWED OUTSIDE P & DIV
32 allowTagsOutside = address, article, aside, blockquote, footer, header, hr, nav, section
33
34 ## TAGS ALLOWED
35 ## 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
36 ## But, for the sake of clarity, we use a complete list in alphabetic order.
37 ## center, font, link, meta, o:p, strike, sdfield, style, title and u will be removed on entry (see below).
38 ## b and i will be remapped on exit (see below).
39 ## Note that the link accessibility feature of htmlArea RTE does insert img tags.
40 allowTags (
41 a, abbr, acronym, address, article, aside, b, bdo, big, blockquote, br, caption, center, cite, code, col, colgroup, dd, del, dfn, dl, div, dt, em, font, footer,
42 header, h1, h2, h3, h4, h5, h6, hr, i, img, ins, kbd, label, li, link, meta, nav, ol, p, pre, q, samp, sdfield, section, small,
43 span, strike, strong, style, sub, sup, table, thead, tbody, tfoot, td, th, tr, title, tt, u, ul, var
44 )
45
46 ## TAGS DENIED
47 ## Make sure we can set rules on any tag listed in allowTags.
48 denyTags >
49
50 ## ALLOWED P & DIV ATTRIBUTES
51 ## Attributes class and align are always preserved
52 ## Align attribute will be unset on entry (see below)
53 ## This is a list of additional attributes to keep
54 keepPDIVattribs = id, title, dir, lang, xml:lang, itemscope, itemtype, itemprop
55
56 ## REMAP BOLD AND ITALIC TO STRONG AND EMPHASIS AND VICE VERSA
57 transformBoldAndItalicTags = 1
58
59 ## ALLOW TO WRITE ABOUT HTML
60 dontUndoHSC_db = 1
61 dontHSC_rte = 1
62
63 ## CONTENT TO DATABASE
64 entryHTMLparser_db = 1
65 entryHTMLparser_db {
66
67 ## TAGS ALLOWED
68 ## Always use the same list of allowed tags.
69 allowTags < RTE.default.proc.allowTags
70
71 ## TAGS DENIED
72 ## Make sure we can set rules on any tag listed in allowTags.
73 denyTags >
74
75 ## AVOID CONTENT BEING HSC'ed TWICE
76 htmlSpecialChars = 0
77
78 tags {
79
80 ## REMOVE IMG TAGS
81 img.allowedAttribs = 0
82 img.rmTagIfNoAttrib = 1
83
84 ## CLEAN ATTRIBUTES ON THE FOLLOWING TAGS
85 span.fixAttrib.style.unset = 1
86 span.allowedAttribs = id, title, dir, lang, xml:lang, class, itemscope, itemtype, itemprop
87 span.rmTagIfNoAttrib = 1
88 p {
89 allowedAttribs = id, title, dir, lang, xml:lang, class, itemscope, itemtype, itemprop
90 fixAttrib.align.unset = 1
91 }
92 div < .p
93 hr.allowedAttribs = class
94 b.allowedAttribs < .span.allowedAttribs
95 bdo.allowedAttribs < .span.allowedAttribs
96 big.allowedAttribs < .span.allowedAttribs
97 blockquote.allowedAttribs < .span.allowedAttribs
98 cite.allowedAttribs < .span.allowedAttribs
99 code.allowedAttribs < .span.allowedAttribs
100 del.allowedAttribs < .span.allowedAttribs
101 dfn.allowedAttribs < .span.allowedAttribs
102 em.allowedAttribs < .span.allowedAttribs
103 i.allowedAttribs < .span.allowedAttribs
104 ins.allowedAttribs < .span.allowedAttribs
105 kbd.allowedAttribs < .span.allowedAttribs
106 label.allowedAttribs < .span.allowedAttribs
107 q.allowedAttribs < .span.allowedAttribs
108 samp.allowedAttribs < .span.allowedAttribs
109 small.allowedAttribs < .span.allowedAttribs
110 strike.allowedAttribs < .span.allowedAttribs
111 strong.allowedAttribs < .span.allowedAttribs
112 sub.allowedAttribs < .span.allowedAttribs
113 sup.allowedAttribs < .span.allowedAttribs
114 tt.allowedAttribs < .span.allowedAttribs
115 u.allowedAttribs < .span.allowedAttribs
116 var.allowedAttribs < .span.allowedAttribs
117 }
118
119 ## REMOVE OPEN OFFICE META DATA TAGS, WORD 2003 TAGS, LINK, META, STYLE AND TITLE TAGS, AND DEPRECATED HTML TAGS
120 ## We use this rule instead of the denyTags rule so that we can protect custom tags without protecting these unwanted tags.
121 removeTags = center, font, link, meta, o:p, sdfield, strike, style, title, u
122
123 ## PROTECT CUSTOM TAGS
124 keepNonMatchedTags = protect
125 }
126
127 HTMLparser_db {
128 ## STRIP ALL ATTRIBUTES FROM THESE TAGS
129 ## 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.
130 ## However, we want to keep xml:lang attribute on most tags and tags from the default list where cleaned on entry.
131 noAttrib = br
132
133 ## XHTML COMPLIANCE
134 ## Note that applying xhtml_cleaning on exit would break non-standard attributes of typolink tags
135 xhtml_cleaning = 1
136 }
137
138 exitHTMLparser_db = 1
139 exitHTMLparser_db {
140 ## KEEP ALL TAGS
141 ## Unwanted tags were removed on entry.
142 ## Without this rule, the parser will remove all tags! Presumably, this rule will be more efficient than repeating the allowTags rule
143 keepNonMatchedTags = 1
144
145 ## AVOID CONTENT BEING HSC'ed TWICE
146 htmlSpecialChars = 0
147 }
148 }
149
150 ## Use same RTE processing rules in FE
151 RTE.default.FE.proc < RTE.default.proc
152
153 ## RTE processing rules for bodytext column of tt_content table
154 ## Erase settings from other extensions
155 RTE.config.tt_content.bodytext >
156
157 ## Make sure we use ts_css transformation
158 RTE.config.tt_content.bodytext.proc.overruleMode = ts_css
159 RTE.config.tt_content.bodytext.types.text.proc.overruleMode = ts_css
160 RTE.config.tt_content.bodytext.types.textpic.proc.overruleMode = ts_css