[BUGFIX] RTE: Multi-line lists in default PageTS configs cause problems
[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 = 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
41 allowTags := addToList(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)
42 allowTags := addToList(span, strike, strong, style, sub, sup, table, thead, tbody, tfoot, td, th, tr, title, tt, u, ul, var)
43
44 ## TAGS DENIED
45 ## Make sure we can set rules on any tag listed in allowTags.
46 denyTags >
47
48 ## ALLOWED P & DIV ATTRIBUTES
49 ## Attributes class and align are always preserved
50 ## Align attribute will be unset on entry (see below)
51 ## This is a list of additional attributes to keep
52 keepPDIVattribs = id, title, dir, lang, xml:lang, itemscope, itemtype, itemprop
53
54 ## REMAP BOLD AND ITALIC TO STRONG AND EMPHASIS AND VICE VERSA
55 transformBoldAndItalicTags = 1
56
57 ## ALLOW TO WRITE ABOUT HTML
58 dontUndoHSC_db = 1
59 dontHSC_rte = 1
60
61 ## CONTENT TO DATABASE
62 entryHTMLparser_db = 1
63 entryHTMLparser_db {
64
65 ## TAGS ALLOWED
66 ## Always use the same list of allowed tags.
67 allowTags < RTE.default.proc.allowTags
68
69 ## TAGS DENIED
70 ## Make sure we can set rules on any tag listed in allowTags.
71 denyTags >
72
73 ## AVOID CONTENT BEING HSC'ed TWICE
74 htmlSpecialChars = 0
75
76 tags {
77
78 ## REMOVE IMG TAGS
79 img.allowedAttribs = 0
80 img.rmTagIfNoAttrib = 1
81
82 ## CLEAN ATTRIBUTES ON THE FOLLOWING TAGS
83 span.fixAttrib.style.unset = 1
84 span.allowedAttribs = id, title, dir, lang, xml:lang, class, itemscope, itemtype, itemprop
85 span.rmTagIfNoAttrib = 1
86 p {
87 allowedAttribs = id, title, dir, lang, xml:lang, class, itemscope, itemtype, itemprop
88 fixAttrib.align.unset = 1
89 }
90 div < .p
91 hr.allowedAttribs = class
92 b.allowedAttribs < .span.allowedAttribs
93 bdo.allowedAttribs < .span.allowedAttribs
94 big.allowedAttribs < .span.allowedAttribs
95 blockquote.allowedAttribs < .span.allowedAttribs
96 cite.allowedAttribs < .span.allowedAttribs
97 code.allowedAttribs < .span.allowedAttribs
98 del.allowedAttribs < .span.allowedAttribs
99 dfn.allowedAttribs < .span.allowedAttribs
100 em.allowedAttribs < .span.allowedAttribs
101 i.allowedAttribs < .span.allowedAttribs
102 ins.allowedAttribs < .span.allowedAttribs
103 kbd.allowedAttribs < .span.allowedAttribs
104 label.allowedAttribs < .span.allowedAttribs
105 q.allowedAttribs < .span.allowedAttribs
106 samp.allowedAttribs < .span.allowedAttribs
107 small.allowedAttribs < .span.allowedAttribs
108 strike.allowedAttribs < .span.allowedAttribs
109 strong.allowedAttribs < .span.allowedAttribs
110 sub.allowedAttribs < .span.allowedAttribs
111 sup.allowedAttribs < .span.allowedAttribs
112 tt.allowedAttribs < .span.allowedAttribs
113 u.allowedAttribs < .span.allowedAttribs
114 var.allowedAttribs < .span.allowedAttribs
115 }
116
117 ## REMOVE OPEN OFFICE META DATA TAGS, WORD 2003 TAGS, LINK, META, STYLE AND TITLE TAGS, AND DEPRECATED HTML TAGS
118 ## We use this rule instead of the denyTags rule so that we can protect custom tags without protecting these unwanted tags.
119 removeTags = center, font, link, meta, o:p, sdfield, strike, style, title, u
120
121 ## PROTECT CUSTOM TAGS
122 keepNonMatchedTags = protect
123 }
124
125 HTMLparser_db {
126 ## STRIP ALL ATTRIBUTES FROM THESE TAGS
127 ## 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.
128 ## However, we want to keep xml:lang attribute on most tags and tags from the default list where cleaned on entry.
129 noAttrib = br
130
131 ## XHTML COMPLIANCE
132 ## Note that applying xhtml_cleaning on exit would break non-standard attributes of typolink tags
133 xhtml_cleaning = 1
134 }
135
136 exitHTMLparser_db = 1
137 exitHTMLparser_db {
138 ## KEEP ALL TAGS
139 ## Unwanted tags were removed on entry.
140 ## Without this rule, the parser will remove all tags! Presumably, this rule will be more efficient than repeating the allowTags rule
141 keepNonMatchedTags = 1
142
143 ## AVOID CONTENT BEING HSC'ed TWICE
144 htmlSpecialChars = 0
145 }
146 }
147
148 ## Use same RTE processing rules in FE
149 RTE.default.FE.proc < RTE.default.proc
150
151 ## RTE processing rules for bodytext column of tt_content table
152 ## Erase settings from other extensions
153 RTE.config.tt_content.bodytext >
154
155 ## Make sure we use ts_css transformation
156 RTE.config.tt_content.bodytext.proc.overruleMode = ts_css
157 RTE.config.tt_content.bodytext.types.text.proc.overruleMode = ts_css
158 RTE.config.tt_content.bodytext.types.textpic.proc.overruleMode = ts_css