672734ee6de30267aaa39913e0a686187cbae91e
[Packages/TYPO3.CMS.git] / typo3 / sysext / rtehtmlarea / res / typical / pageTSConfig.txt
1 # ***************************************************************************************
2 # "Typical" Page TSconfig for htmlArea RTE and Classic RTE
3 #
4 # Sets Page TSConfig with most commonly used features representing a good start for typical sites.
5 #
6 # @author Stanislas Rolland <stanislas.rolland(arobas)fructifor.ca>
7 # ***************************************************************************************
8
9 ## Define labels and styles to be applied to class selectors in the interface of the RTE
10 ## The examples included here make partial re-use of color scheme and frame scheme from CSS Styled Content extension
11 RTE.classes {
12 align-left {
13 name = LLL:EXT:rtehtmlarea/htmlarea/locallang_tooltips.xml:justifyleft
14 value = text-align: left;
15 }
16 align-center {
17 name = LLL:EXT:rtehtmlarea/htmlarea/locallang_tooltips.xml:justifycenter
18 value = text-align: center;
19 }
20 align-right {
21 name = LLL:EXT:rtehtmlarea/htmlarea/locallang_tooltips.xml:justifyright
22 value = text-align: right;
23 }
24 csc-frame-frame1 {
25 name = LLL:EXT:rtehtmlarea/res/contentcss/locallang.xml:frame-frame1
26 value = background-color: #EDEBF1; border: 1px solid #333333;
27 }
28 csc-frame-frame2 {
29 name = LLL:EXT:rtehtmlarea/res/contentcss/locallang.xml:frame-frame2
30 value = background-color: #F5FFAA; border: 1px solid #333333;
31 }
32 important {
33 name = LLL:EXT:rtehtmlarea/res/contentcss/locallang.xml:important
34 value = color: #8A0020;
35 }
36 name-of-person {
37 name = LLL:EXT:rtehtmlarea/res/contentcss/locallang.xml:name-of-person
38 value = color: #10007B;
39 }
40 detail {
41 name = LLL:EXT:rtehtmlarea/res/contentcss/locallang.xml:detail
42 value = color: #186900;
43 }
44 component-items {
45 name = LLL:EXT:rtehtmlarea/res/contentcss/locallang.xml:component-items
46 value = color: #186900;
47 }
48 action-items {
49 name = LLL:EXT:rtehtmlarea/res/contentcss/locallang.xml:action-items
50 value = color: #8A0020;
51 }
52 component-items-ordered {
53 name = LLL:EXT:rtehtmlarea/res/contentcss/locallang.xml:component-items
54 value = color: #186900;
55 }
56 action-items-ordered {
57 name = LLL:EXT:rtehtmlarea/res/contentcss/locallang.xml:action-items
58 value = color: #8A0020;
59 }
60 }
61
62 ## Anchor classes configuration for use by the anchor accesibility feature (htmlArea RTE only)
63 RTE.classesAnchor {
64 externalLink {
65 class = external-link
66 type = url
67 titleText = LLL:EXT:rtehtmlarea/res/accessibilityicons/locallang.xml:external_link_titleText
68 }
69 externalLinkInNewWindow {
70 class = external-link-new-window
71 type = url
72 titleText = LLL:EXT:rtehtmlarea/res/accessibilityicons/locallang.xml:external_link_new_window_titleText
73 }
74 internalLink {
75 class = internal-link
76 type = page
77 titleText = LLL:EXT:rtehtmlarea/res/accessibilityicons/locallang.xml:internal_link_titleText
78 }
79 internalLinkInNewWindow {
80 class = internal-link-new-window
81 type = page
82 titleText = LLL:EXT:rtehtmlarea/res/accessibilityicons/locallang.xml:internal_link_new_window_titleText
83 }
84 download {
85 class = download
86 type = file
87 titleText = LLL:EXT:rtehtmlarea/res/accessibilityicons/locallang.xml:download_titleText
88 }
89 mail {
90 class = mail
91 type = mail
92 titleText = LLL:EXT:rtehtmlarea/res/accessibilityicons/locallang.xml:mail_titleText
93 }
94 }
95
96 ## Default RTE configuration
97 RTE.default {
98
99 ## Markup options (htmlArea RTE only)
100 enableWordClean = 1
101 removeTrailingBR = 1
102 removeComments = 1
103 removeTags = center, font, o:p, sdfield, strike, u
104 removeTagsAndContents = link, meta, script, style, title
105
106 ## Toolbar options
107 ## The TCA configuration may add buttons to the toolbar
108 ## The following buttons are specific to Classic RTE: class
109 ## The following buttons are specific to htmlArea RTE: blockstylelabel, blockstyle, textstylelabel, textstyle,
110 ## insertcharacter, findreplace, removeformat, toggleborders, tableproperties,
111 ## rowproperties, rowinsertabove, rowinsertunder, rowdelete, rowsplit,
112 ## columninsertbefore, columninsertafter, columndelete, columnsplit,
113 ## cellproperties, cellinsertbefore, cellinsertafter, celldelete, cellsplit, cellmerge
114 showButtons (
115 class, blockstylelabel, blockstyle, textstylelabel, textstyle,
116 formatblock, bold, italic, subscript, superscript,
117 orderedlist, unorderedlist, outdent, indent, textindicator,
118 insertcharacter, link, table, findreplace, chMode, removeformat, undo, redo, about,
119 toggleborders, tableproperties,
120 rowproperties, rowinsertabove, rowinsertunder, rowdelete, rowsplit,
121 columninsertbefore, columninsertafter, columndelete, columnsplit,
122 cellproperties, cellinsertbefore, cellinsertafter, celldelete, cellsplit, cellmerge
123 )
124
125 ## More toolbar options (htmlArea RTE only)
126 keepButtonGroupTogether = 1
127
128 ## Enable status bar (htmlArea RTE only)
129 showStatusBar = 1
130
131 ## Hide infrequently used paragraph types in the paragraph type selector (formatblock button)
132 hidePStyleItems = pre,address
133
134 ## Add default example styles
135 ## Left, center, right and justify alignment of text in block elements
136 inlineStyle.text-alignment (
137 p.align-left, h1.align-left, h2.align-left, h3.align-left, h4.align-left, h5.align-left, h6.align-left, div.align-left, address.align-left { text-align: left; }
138 p.align-center, h1.align-center, h2.align-center, h3.align-center, h4.align-center, h5.align-center, h6.align-center, div.align-center, address.align-center { text-align: center; }
139 p.align-right, h1.align-right, h2.align-right, h3.align-right, h4.align-right, h5.align-right, h6.align-right, div.align-right, address.align-right { text-align: right; }
140 p.align-justify, h1.align-justify, h2.align-justify, h3.align-justify, h4.align-justify, h5.align-justify, h6.align-justify, div.align-justify, address.align-justify { text-align: justify; }
141 )
142 ## Two frame examples taken from the example CSS file of CSS Styled Content extension and applied to p and table block elements.
143 inlineStyle.frames (
144 p.csc-frame-frame1, table.csc-frame-frame1 { background-color: #EDEBF1; padding: 2px 4px 2px 4px; border: 1px solid #333333; }
145 p.csc-frame-frame2, table.csc-frame-frame2 { background-color: #F5FFAA; padding: 2px 4px 2px 4px; border: 1px solid #333333; }
146 )
147 ## Bullet styles for unordered lists.
148 inlineStyle.ul (
149 ul.component-items { color: #186900; list-style-type: circle; }
150 ul.action-items { color: #8A0020; list-style-image: url(img/red_arrow_bullet.gif); }
151 )
152 ## Numbering styles for ordered lists.
153 inlineStyle.ol (
154 ol.component-items-ordered { color: #10007B; list-style-type: lower-roman; }
155 ol.action-items-ordered { color: #8A0020; list-style-type: lower-greek; }
156 )
157 ## Three inline text colors taken from the color scheme of CSS Styled Content extension.
158 inlineStyle.inline-text (
159 span.important { color: #8A0020; }
160 span.name-of-person { color: #10007B; }
161 span.detail { color: #186900; }
162 )
163 ## Default selectors for the default configuration of the link accessibity feature.
164 inlineStyle.accessibility (
165 a.external-link {}
166 a.external-link-new-window {}
167 a.internal-link {}
168 a.internal-link-new-window {}
169 a.download {}
170 a.mail {}
171 )
172 ## Default selector for indentation.
173 inlineStyle.indentation (
174 div.indent { margin-left: 2em; }
175 )
176
177 ## Use stylesheet file rather than the above mainStyleOverride and inlineStyle properties to style the contents (htmlArea RTE only).
178 ## When RTE.default.contentCSS is not specified, file EXT:rtehtmlarea/res/contentcsss/default.css is used.
179 ignoreMainStyleOverride = 1
180
181 ## List all class selectors that are allowed on the way to the database
182 proc.allowedClasses (
183 external-link, external-link-new-window, internal-link, internal-link-new-window, download, mail,
184 align-left, align-center, align-right, align-justify,
185 csc-frame-frame1, csc-frame-frame2,
186 component-items, action-items,
187 component-items-ordered, action-items-ordered,
188 important, name-of-person, detail,
189 indent
190 )
191
192 ## classesParagraph, classesTable, classesTD, classesLinks, classesCharacter
193 ## Classic RTE: Specify the list of class selectors that should be presented in the RTE interface:
194 ## htmlArea RTE: Restrict the list of class selectors presented by the RTE to the following:
195 classesParagraph (
196 align-left, align-center, align-right,
197 csc-frame-frame1, csc-frame-frame2
198 )
199 classesTable = csc-frame-frame1, csc-frame-frame2
200 classesTD = align-left, align-center, align-right
201 classesLinks = external-link, external-link-new-window, internal-link, internal-link-new-window, download, mail
202 classesCharacter = important, name-of-person, detail
203
204 ## Configuration of the anchor accessibility feature (htmlArea RTE only)
205 ## These classes should also be in the list of allowedClasses.
206 classesAnchor = external-link, external-link-new-window, internal-link, internal-link-new-window, download, mail
207 classesAnchor.default {
208 page = internal-link
209 url = external-link-new-window
210 file = download
211 mail = mail
212 }
213
214 ## Configuration specific to the TableOperations feature (htmlArea RTE only)
215 ## Remove the following fieldsets from the table operations dialogs
216 disableAlignmentFieldsetInTableOperations = 1
217 disableSpacingFieldsetInTableOperations = 1
218 disableColorFieldsetInTableOperations = 1
219 disableLayoutFieldsetInTableOperations = 1
220 disableBordersFieldsetInTableOperations = 1
221 ## Show borders on table creation
222 buttons.toggleborders.setOnTableCreation = 1
223
224 ## Configuration specific to the bold and italic buttons (htmlArea RTE only)
225 ## Add hotkeys associated with bold and italic buttons
226 buttons.bold.hotKey = b
227 buttons.italic.hotKey = i
228 }
229
230 ## front end RTE configuration for the general public (htmlArea RTE only)
231 RTE.default.FE < RTE.default
232 RTE.default.FE.showStatusBar = 0
233 RTE.default.FE.hideButtons = chMode, blockstyle, textstyle, underline, strikethrough, subscript, superscript, lefttoright, righttoleft, left, center, right, justifyfull, table, inserttag, findreplace, removeformat, copy, cut, paste
234 RTE.default.FE.FE >
235 RTE.default.FE.userElements >
236 RTE.default.FE.userLinks >