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