* (major) Feature: Improved behaviour and configuration options for inline elements...
[Packages/TYPO3.CMS.git] / typo3 / sysext / rtehtmlarea / res / 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 # TYPO3 CVS ID: $Id$
17 # ***************************************************************************************
18
19 ## Default RTE processing rules
20 RTE.default.proc {
21
22 ## TRANSFORMATION METHOD
23 ## We assume that CSS Styled Content is used.
24 overruleMode = ts_css
25
26 ## DO NOT CONVERT BR TAGS INTO LINEBREAKS
27 ## br tags in the content are assumed to be intentional.
28 dontConvBRtoParagraph = 1
29
30 ## PRESERVE DIV SECTIONS - DO NOT REMAP TO P
31 preserveDIVSections = 1
32
33 ## TAGS ALLOWED OUTSIDE P & DIV
34 allowTagsOutside = hr, address
35
36 ## TAGS ALLOWED
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.
42 allowTags (
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
46 )
47
48 ## TAGS DENIED
49 ## Make sure we can set rules on any tag listed in allowTags.
50 denyTags >
51
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
57
58 ## DO NOT REMAP BOLD AND ITALIC TO STRONG AND EMPHASIS AND VICE VERSA
59 transformBoldAndItalicTags = 0
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 p {
85 allowedAttribs = id, title, dir, lang, xml:lang, class
86 fixAttrib.align.unset = 1
87 }
88 div < .p
89 hr.allowedAttribs = class
90 b.allowedAttribs = id, title, dir, lang, xml:lang, class
91 bdo.allowedAttribs = id, title, dir, lang, xml:lang, class
92 big.allowedAttribs = id, title, dir, lang, xml:lang, class
93 blockquote.allowedAttribs = id, title, dir, lang, xml:lang, class
94 cite.allowedAttribs = id, title, dir, lang, xml:lang, class
95 code.allowedAttribs = id, title, dir, lang, xml:lang, class
96 del.allowedAttribs = id, title, dir, lang, xml:lang, class
97 dfn.allowedAttribs = id, title, dir, lang, xml:lang, class
98 em.allowedAttribs = id, title, dir, lang, xml:lang, class
99 i.allowedAttribs = id, title, dir, lang, xml:lang, class
100 ins.allowedAttribs = id, title, dir, lang, xml:lang, class
101 kbd.allowedAttribs = id, title, dir, lang, xml:lang, class
102 label.allowedAttribs = id, title, dir, lang, xml:lang, class
103 q.allowedAttribs = id, title, dir, lang, xml:lang, class
104 samp.allowedAttribs = id, title, dir, lang, xml:lang, class
105 small.allowedAttribs = id, title, dir, lang, xml:lang, class
106 strike.allowedAttribs = id, title, dir, lang, xml:lang, class
107 strong.allowedAttribs = id, title, dir, lang, xml:lang, class
108 sub.allowedAttribs = id, title, dir, lang, xml:lang, class
109 sup.allowedAttribs = id, title, dir, lang, xml:lang, class
110 tt.allowedAttribs = id, title, dir, lang, xml:lang, class
111 u.allowedAttribs = id, title, dir, lang, xml:lang, class
112 var.allowedAttribs = id, title, dir, lang, xml:lang, class
113 }
114
115 ## REMOVE OPEN OFFICE META DATA TAGS, WORD 2003 TAGS AND DEPRECATED HTML TAGS
116 ## We use this rule instead of the denyTags rule so that we can protect custom tags without protecting these unwanted tags.
117 removeTags = center, font, o:p, sdfield, strike, u
118
119 ## PROTECT CUSTOM TAGS
120 keepNonMatchedTags = protect
121 }
122
123 HTMLparser_db {
124 ## STRIP ALL ATTRIBUTES FROM THESE TAGS
125 ## 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.
126 ## However, we want to keep xml:lang attribute on most tags and tags from the default list where cleaned on entry.
127 noAttrib = br
128
129 ## XHTML COMPLIANCE
130 ## Note that applying xhtml_cleaning on exit would break non-standard attributes of typolink tags
131 xhtml_cleaning = 1
132 }
133
134 exitHTMLparser_db = 1
135 exitHTMLparser_db {
136 ## KEEP ALL TAGS
137 ## Unwanted tags were removed on entry.
138 ## Without this rule, the parser will remove all tags! Presumably, this rule will be more efficient than repeating the allowTags rule
139 keepNonMatchedTags = 1
140
141 ## AVOID CONTENT BEING HSC'ed TWICE
142 htmlSpecialChars = 0
143 }
144 }
145
146 ## Use same RTE processing rules in FE
147 RTE.default.FE.proc < RTE.default.proc
148
149 ## RTE processing rules for bodytext column of tt_content table
150 ## Erase settings from other extensions
151 RTE.config.tt_content.bodytext >
152
153 ## Make sure we use ts_css transformation
154 RTE.config.tt_content.bodytext.proc.overruleMode = ts_css
155 RTE.config.tt_content.bodytext.types.text.proc.overruleMode = ts_css
156 RTE.config.tt_content.bodytext.types.textpic.proc.overruleMode = ts_css