[TASK] Organize TSconfig structure
[Packages/TYPO3.CMS.git] / typo3 / sysext / rtehtmlarea / Configuration / PageTSconfig / Demo / pageTSConfig.txt
1 # ***************************************************************************************
2 # "Demo" Page TSconfig for htmlArea RTE
3 #
4 # Sets default Page TSConfig with maximal features for users who want to explore the features of the RTE.
5 # ***************************************************************************************
6
7         ## Define labels and styles to be applied to class selectors in the interface of the RTE
8         ## 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.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                 image = EXT:rtehtmlarea/Resources/Public/Images/external_link.gif
66                 altText = LLL:EXT:rtehtmlarea/Resources/Private/Language/locallang_accessibilityicons.xlf:external_link_altText
67                 titleText = LLL:EXT:rtehtmlarea/Resources/Private/Language/locallang_accessibilityicons.xlf:external_link_titleText
68         }
69         externalLinkInNewWindow {
70                 class = external-link-new-window
71                 type = url
72                 image = EXT:rtehtmlarea/Resources/Public/Images/external_link_new_window.gif
73                 altText = LLL:EXT:rtehtmlarea/Resources/Private/Language/locallang_accessibilityicons.xlf:external_link_new_window_altText
74                 titleText = LLL:EXT:rtehtmlarea/Resources/Private/Language/locallang_accessibilityicons.xlf:external_link_new_window_titleText
75         }
76         internalLink {
77                 class = internal-link
78                 type = page
79                 image = EXT:rtehtmlarea/Resources/Public/Images/internal_link.gif
80                 altText = LLL:EXT:rtehtmlarea/Resources/Private/Language/locallang_accessibilityicons.xlf:internal_link_altText
81                 titleText = LLL:EXT:rtehtmlarea/Resources/Private/Language/locallang_accessibilityicons.xlf:internal_link_titleText
82         }
83         internalLinkInNewWindow {
84                 class = internal-link-new-window
85                 type = page
86                 image = EXT:rtehtmlarea/Resources/Public/Images/internal_link_new_window.gif
87                 altText = LLL:EXT:rtehtmlarea/Resources/Private/Language/locallang_accessibilityicons.xlf:internal_link_new_window_altText
88                 titleText = LLL:EXT:rtehtmlarea/Resources/Private/Language/locallang_accessibilityicons.xlf:internal_link_new_window_titleText
89         }
90         download {
91                 class = download
92                 type = file
93                 image = EXT:rtehtmlarea/Resources/Public/Images/download.gif
94                 altText = LLL:EXT:rtehtmlarea/Resources/Private/Language/locallang_accessibilityicons.xlf:download_altText
95                 titleText = LLL:EXT:rtehtmlarea/Resources/Private/Language/locallang_accessibilityicons.xlf:download_titleText
96         }
97         mail {
98                 class = mail
99                 type = mail
100                 image = EXT:rtehtmlarea/Resources/Public/Images/mail.gif
101                 altText = LLL:EXT:rtehtmlarea/Resources/Private/Language/locallang_accessibilityicons.xlf:mail_altText
102                 titleText = LLL:EXT:rtehtmlarea/Resources/Private/Language/locallang_accessibilityicons.xlf:mail_titleText
103         }
104 }
105
106         ## Default RTE configuration
107 RTE.default {
108
109                 ## Markup options
110         enableWordClean = 1
111         removeTrailingBR = 1
112         removeComments = 1
113         removeTags = center, o:p, sdfield
114         removeTagsAndContents = link, meta, script, style, title
115
116                 ## Allow img tags
117         proc.entryHTMLparser_db.tags.img >
118
119                 ## Allow style attribute
120         proc.entryHTMLparser_db.tags {
121                 p.allowedAttribs := addToList(style)
122                 span.fixAttrib.style.unset >
123         }
124
125                 ## Toolbar options
126         showButtons = *
127
128                 ## More toolbar options
129         keepButtonGroupTogether = 1
130
131                 ## Enable status bar
132         showStatusBar =  1
133
134                 ## For this demo, do not remove font, strike and u tags
135         proc.entryHTMLparser_db.removeTags := removeFromList(font,strike,u)
136
137                 ## List all class selectors that are allowed on the way to the database
138         proc.allowedClasses = external-link, external-link-new-window, internal-link, internal-link-new-window, download, mail
139         proc.allowedClasses := addToList(align-left, align-center, align-right, align-justify)
140         proc.allowedClasses := addToList(csc-frame-frame1, csc-frame-frame2)
141         proc.allowedClasses := addToList(component-items, action-items)
142         proc.allowedClasses := addToList(component-items-ordered, action-items-ordered)
143         proc.allowedClasses := addToList(important, name-of-person, detail)
144         proc.allowedClasses := addToList(indent)
145
146                 ## Restrict the list of class selectors presented by the RTE to the following for the specified tags:
147         buttons.blockstyle.tags.div.allowedClasses = align-left, align-center, align-right
148         buttons.blockstyle.tags.div.allowedClasses := addToList(csc-frame-frame1, csc-frame-frame2)
149         buttons.blockstyle.tags.table.allowedClasses = csc-frame-frame1, csc-frame-frame2
150         buttons.blockstyle.tags.td.allowedClasses = align-left, align-center, align-right
151         buttons.textstyle.tags.span.allowedClasses = important, name-of-person, detail
152
153                 ## Configuration of links
154                 ## These classes should also be in the list proc.allowedClasses
155         buttons.link.properties.class.allowedClasses = external-link, external-link-new-window, internal-link, internal-link-new-window, download, mail
156         buttons.link.page.properties.class.default = internal-link
157         buttons.link.url.properties.class.default = external-link-new-window
158         buttons.link.file.properties.class.default = download
159         buttons.link.mail.properties.class.default = mail
160
161                 ## Show all applicable class selectors available in the style sheet file
162         buttons.blockstyle.showTagFreeClasses = 1
163         buttons.textstyle.showTagFreeClasses = 1
164
165                 ## Configuration specific to the table button or TableOperations feature
166                 ## Use the context menu instead of the toolbar for table operations, but keep toggleborders button in toolbar
167                 ## Show borders on table creation
168         hideTableOperationsInToolbar = 1
169         buttons.toggleborders.keepInToolbar = 1
170         buttons.toggleborders.setOnTableCreation = 1
171
172                 ## Configuration specific to the inserttag button or QuickTag feature
173                 ## Do not allow insertion of the following tags
174         buttons.inserttag.denyTags = font, u, strike, table
175
176                 ## Configuration specific to the bold and italic buttons
177                 ## Add hotkeys associated with bold, italic, strikethrough and underline buttons
178         buttons.bold.hotKey = b
179         buttons.italic.hotKey = i
180         buttons.strikethrough.hotKey = s
181         buttons.underline.hotkey = u
182
183                 ## Configuration specific to the spellcheck button or SpellCheck feature
184                 ## Enable the use of personal dictionaries
185         buttons.spellcheck.enablePersonalDictionaries = 1
186
187                 ## Configuration of microdata schema
188         schema {
189                 sources {
190                         schemaOrg = EXT:rtehtmlarea/extensions/MicrodataSchema/res/schemaOrgAll.rdf
191                 }
192         }
193 }
194
195         ## Use same processing as on entry to database to clean content pasted into the editor
196 RTE.default.enableWordClean.HTMLparser < RTE.default.proc.entryHTMLparser_db
197
198         ## front end RTE configuration
199 RTE.default.FE < RTE.default
200 RTE.default.FE.FE >
201 RTE.default.FE.userElements >