[TASK] Organize TSconfig structure
[Packages/TYPO3.CMS.git] / typo3 / sysext / rtehtmlarea / Configuration / PageTSconfig / 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
7         ## Define labels and styles to be applied to class selectors in the interface of the RTE
8         ## The examples included here make partial re-use of color scheme and frame scheme from CSS Styled Content extension
9 RTE.classes {
10         align-left {
11                 name = LLL:EXT:rtehtmlarea/Resources/Private/Language/locallang_tooltips.xlf:justifyleft
12                 value = text-align: left;
13         }
14         align-center {
15                 name = LLL:EXT:rtehtmlarea/Resources/Private/Language/locallang_tooltips.xlf:justifycenter
16                 value = text-align: center;
17         }
18         align-right {
19                 name = LLL:EXT:rtehtmlarea/Resources/Private/Language/locallang_tooltips.xlf:justifyright
20                 value = text-align: right;
21         }
22         csc-frame-frame1 {
23                 name = LLL:EXT:rtehtmlarea/Resources/Private/Language/locallang_contentcss.xlf:frame-frame1
24                 value = background-color: #EDEBF1; border: 1px solid #333333;
25         }
26         csc-frame-frame2 {
27                 name = LLL:EXT:rtehtmlarea/Resources/Private/Language/locallang_contentcss.xlf:frame-frame2
28                 value = background-color: #F5FFAA; border: 1px solid #333333;
29         }
30         important {
31                 name = LLL:EXT:rtehtmlarea/Resources/Private/Language/locallang_contentcss.xlf:important
32                 value = color: #8A0020;
33         }
34         name-of-person {
35                 name = LLL:EXT:rtehtmlarea/Resources/Private/Language/locallang_contentcss.xlf:name-of-person
36                 value = color: #10007B;
37         }
38         detail {
39                 name = LLL:EXT:rtehtmlarea/Resources/Private/Language/locallang_contentcss.xlf:detail
40                 value = color: #186900;
41         }
42         component-items {
43                 name = LLL:EXT:rtehtmlarea/Resources/Private/Language/locallang_contentcss.xlf:component-items
44                 value = color: #186900;
45         }
46         action-items {
47                 name = LLL:EXT:rtehtmlarea/Resources/Private/Language/locallang_contentcss.xlf:action-items
48                 value = color: #8A0020;
49         }
50         component-items-ordered {
51                 name = LLL:EXT:rtehtmlarea/Resources/Private/Language/locallang_contentcss.xlf:component-items
52                 value = color: #186900;
53         }
54         action-items-ordered {
55                 name = LLL:EXT:rtehtmlarea/Resources/Private/Language/locallang_contentcss.xlf:action-items
56                 value = color: #8A0020;
57         }
58 }
59
60         ## Anchor classes configuration for use by the anchor accesibility feature
61 RTE.classesAnchor {
62         externalLink {
63                 class = external-link
64                 type = url
65                 titleText = LLL:EXT:rtehtmlarea/Resources/Private/Language/locallang_accessibilityicons.xlf:external_link_titleText
66         }
67         externalLinkInNewWindow {
68                 class = external-link-new-window
69                 type = url
70                 titleText = LLL:EXT:rtehtmlarea/Resources/Private/Language/locallang_accessibilityicons.xlf:external_link_new_window_titleText
71         }
72         internalLink {
73                 class = internal-link
74                 type = page
75                 titleText = LLL:EXT:rtehtmlarea/Resources/Private/Language/locallang_accessibilityicons.xlf:internal_link_titleText
76         }
77         internalLinkInNewWindow {
78                 class = internal-link-new-window
79                 type = page
80                 titleText = LLL:EXT:rtehtmlarea/Resources/Private/Language/locallang_accessibilityicons.xlf:internal_link_new_window_titleText
81         }
82         download {
83                 class = download
84                 type = file
85                 titleText = LLL:EXT:rtehtmlarea/Resources/Private/Language/locallang_accessibilityicons.xlf:download_titleText
86         }
87         mail {
88                 class = mail
89                 type = mail
90                 titleText = LLL:EXT:rtehtmlarea/Resources/Private/Language/locallang_accessibilityicons.xlf:mail_titleText
91         }
92 }
93
94         ## Default RTE configuration
95 RTE.default {
96
97                 ## Markup options
98         enableWordClean = 1
99         removeTrailingBR = 1
100         removeComments = 1
101         removeTags = center, font, o:p, sdfield, strike, u
102         removeTagsAndContents = link, meta, script, style, title
103
104                 ## Toolbar options
105                 ## The TCA configuration may add buttons to the toolbar
106         showButtons = blockstylelabel, blockstyle, textstylelabel, textstyle
107         showButtons := addToList(formatblock, bold, italic, subscript, superscript)
108         showButtons := addToList(orderedlist, unorderedlist, outdent, indent, textindicator)
109         showButtons := addToList(insertcharacter, link, table, findreplace, chMode, removeformat, undo, redo, about)
110         showButtons := addToList(toggleborders, tableproperties)
111         showButtons := addToList(rowproperties, rowinsertabove, rowinsertunder, rowdelete, rowsplit)
112         showButtons := addToList(columninsertbefore, columninsertafter, columndelete, columnsplit)
113         showButtons := addToList(cellproperties, cellinsertbefore, cellinsertafter, celldelete, cellsplit, cellmerge)
114
115                 ## More toolbar options
116         keepButtonGroupTogether = 1
117
118                 ## Enable status bar
119         showStatusBar =  1
120
121                 ## Hide infrequently used block types in the block formatting selector
122         buttons.formatblock.removeItems = pre,address
123
124                 ## List all class selectors that are allowed on the way to the database
125         proc.allowedClasses = external-link, external-link-new-window, internal-link, internal-link-new-window, download, mail
126         proc.allowedClasses := addToList(align-left, align-center, align-right, align-justify)
127         proc.allowedClasses := addToList(csc-frame-frame1, csc-frame-frame2)
128         proc.allowedClasses := addToList(component-items, action-items)
129         proc.allowedClasses := addToList(component-items-ordered, action-items-ordered)
130         proc.allowedClasses := addToList(important, name-of-person, detail)
131         proc.allowedClasses := addToList(indent)
132
133                 ## Restrict the list of class selectors presented by the RTE to the following for the specified tags:
134         buttons.blockstyle.tags.div.allowedClasses = align-left, align-center, align-right
135         buttons.blockstyle.tags.div.allowedClasses := addToList(csc-frame-frame1, csc-frame-frame2)
136         buttons.blockstyle.tags.table.allowedClasses = csc-frame-frame1, csc-frame-frame2
137         buttons.blockstyle.tags.td.allowedClasses = align-left, align-center, align-right
138         buttons.textstyle.tags.span.allowedClasses = important, name-of-person, detail
139
140                 ## Configuration of links
141                 ## These classes should also be in the list proc.allowedClasses
142         buttons.link.properties.class.allowedClasses = external-link, external-link-new-window, internal-link, internal-link-new-window, download, mail
143         buttons.link.page.properties.class.default = internal-link
144         buttons.link.url.properties.class.default = external-link-new-window
145         buttons.link.file.properties.class.default = download
146         buttons.link.mail.properties.class.default = mail
147
148                 ## Configuration specific to the TableOperations feature
149                 ## Remove the following fieldsets from the table operations dialogs
150         disableAlignmentFieldsetInTableOperations = 1
151         disableSpacingFieldsetInTableOperations = 1
152         disableColorFieldsetInTableOperations = 1
153         disableLayoutFieldsetInTableOperations = 1
154         disableBordersFieldsetInTableOperations = 1
155                 ## Show borders on table creation
156         buttons.toggleborders.setOnTableCreation = 1
157
158                 ## Configuration specific to the bold and italic buttons
159                 ## Add hotkeys associated with bold and italic buttons
160         buttons.bold.hotKey = b
161         buttons.italic.hotKey = i
162
163                 ## Configuration of microdata schema
164         schema {
165                 sources {
166                         schemaOrg = EXT:rtehtmlarea/extensions/MicrodataSchema/res/schemaOrgAll.rdf
167                 }
168         }
169 }
170
171         ## front end RTE configuration for the general public
172 RTE.default.FE < RTE.default
173 RTE.default.FE.showStatusBar = 0
174 RTE.default.FE.hideButtons = chMode, blockstyle, textstyle, underline, strikethrough, subscript, superscript, lefttoright, righttoleft, left, center, right, justifyfull, table, inserttag, findreplace, removeformat, copy, cut, paste
175 RTE.default.FE.FE >
176 RTE.default.FE.userElements >