6863409f1b73c2214f20613b2d8171071ce59cc2
[Packages/TYPO3.CMS.git] / typo3 / sysext / rtehtmlarea / Configuration / PageTS / 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/htmlarea/locallang_tooltips.xlf:justifyleft
12 value = text-align: left;
13 }
14 align-center {
15 name = LLL:EXT:rtehtmlarea/htmlarea/locallang_tooltips.xlf:justifycenter
16 value = text-align: center;
17 }
18 align-right {
19 name = LLL:EXT:rtehtmlarea/htmlarea/locallang_tooltips.xlf:justifyright
20 value = text-align: right;
21 }
22 csc-frame-frame1 {
23 name = LLL:EXT:rtehtmlarea/res/contentcss/locallang.xlf:frame-frame1
24 value = background-color: #EDEBF1; border: 1px solid #333333;
25 }
26 csc-frame-frame2 {
27 name = LLL:EXT:rtehtmlarea/res/contentcss/locallang.xlf:frame-frame2
28 value = background-color: #F5FFAA; border: 1px solid #333333;
29 }
30 important {
31 name = LLL:EXT:rtehtmlarea/res/contentcss/locallang.xlf:important
32 value = color: #8A0020;
33 }
34 name-of-person {
35 name = LLL:EXT:rtehtmlarea/res/contentcss/locallang.xlf:name-of-person
36 value = color: #10007B;
37 }
38 detail {
39 name = LLL:EXT:rtehtmlarea/res/contentcss/locallang.xlf:detail
40 value = color: #186900;
41 }
42 component-items {
43 name = LLL:EXT:rtehtmlarea/res/contentcss/locallang.xlf:component-items
44 value = color: #186900;
45 }
46 action-items {
47 name = LLL:EXT:rtehtmlarea/res/contentcss/locallang.xlf:action-items
48 value = color: #8A0020;
49 }
50 component-items-ordered {
51 name = LLL:EXT:rtehtmlarea/res/contentcss/locallang.xlf:component-items
52 value = color: #186900;
53 }
54 action-items-ordered {
55 name = LLL:EXT:rtehtmlarea/res/contentcss/locallang.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/res/accessibilityicons/img/external_link.gif
66 altText = LLL:EXT:rtehtmlarea/res/accessibilityicons/locallang.xlf:external_link_altText
67 titleText = LLL:EXT:rtehtmlarea/res/accessibilityicons/locallang.xlf:external_link_titleText
68 }
69 externalLinkInNewWindow {
70 class = external-link-new-window
71 type = url
72 image = EXT:rtehtmlarea/res/accessibilityicons/img/external_link_new_window.gif
73 altText = LLL:EXT:rtehtmlarea/res/accessibilityicons/locallang.xlf:external_link_new_window_altText
74 titleText = LLL:EXT:rtehtmlarea/res/accessibilityicons/locallang.xlf:external_link_new_window_titleText
75 }
76 internalLink {
77 class = internal-link
78 type = page
79 image = EXT:rtehtmlarea/res/accessibilityicons/img/internal_link.gif
80 altText = LLL:EXT:rtehtmlarea/res/accessibilityicons/locallang.xlf:internal_link_altText
81 titleText = LLL:EXT:rtehtmlarea/res/accessibilityicons/locallang.xlf:internal_link_titleText
82 }
83 internalLinkInNewWindow {
84 class = internal-link-new-window
85 type = page
86 image = EXT:rtehtmlarea/res/accessibilityicons/img/internal_link_new_window.gif
87 altText = LLL:EXT:rtehtmlarea/res/accessibilityicons/locallang.xlf:internal_link_new_window_altText
88 titleText = LLL:EXT:rtehtmlarea/res/accessibilityicons/locallang.xlf:internal_link_new_window_titleText
89 }
90 download {
91 class = download
92 type = file
93 image = EXT:rtehtmlarea/res/accessibilityicons/img/download.gif
94 altText = LLL:EXT:rtehtmlarea/res/accessibilityicons/locallang.xlf:download_altText
95 titleText = LLL:EXT:rtehtmlarea/res/accessibilityicons/locallang.xlf:download_titleText
96 }
97 mail {
98 class = mail
99 type = mail
100 image = EXT:rtehtmlarea/res/accessibilityicons/img/mail.gif
101 altText = LLL:EXT:rtehtmlarea/res/accessibilityicons/locallang.xlf:mail_altText
102 titleText = LLL:EXT:rtehtmlarea/res/accessibilityicons/locallang.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 (
139 external-link, external-link-new-window, internal-link, internal-link-new-window, download, mail,
140 align-left, align-center, align-right, align-justify,
141 csc-frame-frame1, csc-frame-frame2,
142 component-items, action-items,
143 component-items-ordered, action-items-ordered,
144 important, name-of-person, detail,
145 indent
146 )
147
148 ## Restrict the list of class selectors presented by the RTE to the following for the specified tags:
149 buttons.blockstyle.tags.div.allowedClasses (
150 align-left, align-center, align-right,
151 csc-frame-frame1, csc-frame-frame2
152 )
153 buttons.blockstyle.tags.table.allowedClasses = csc-frame-frame1, csc-frame-frame2
154 buttons.blockstyle.tags.td.allowedClasses = align-left, align-center, align-right
155 buttons.textstyle.tags.span.allowedClasses = important, name-of-person, detail
156
157 ## Configuration of links
158 ## These classes should also be in the list proc.allowedClasses
159 buttons.link.properties.class.allowedClasses = external-link, external-link-new-window, internal-link, internal-link-new-window, download, mail
160 buttons.link.page.properties.class.default = internal-link
161 buttons.link.url.properties.class.default = external-link-new-window
162 buttons.link.file.properties.class.default = download
163 buttons.link.mail.properties.class.default = mail
164
165 ## Show all applicable class selectors available in the style sheet file
166 buttons.blockstyle.showTagFreeClasses = 1
167 buttons.textstyle.showTagFreeClasses = 1
168
169 ## Configuration specific to the table button or TableOperations feature
170 ## Use the context menu instead of the toolbar for table operations, but keep toggleborders button in toolbar
171 ## Show borders on table creation
172 hideTableOperationsInToolbar = 1
173 buttons.toggleborders.keepInToolbar = 1
174 buttons.toggleborders.setOnTableCreation = 1
175
176 ## Configuration specific to the inserttag button or QuickTag feature
177 ## Do not allow insertion of the following tags
178 buttons.inserttag.denyTags = font, u, strike, table
179
180 ## Configuration specific to the bold and italic buttons
181 ## Add hotkeys associated with bold, italic, strikethrough and underline buttons
182 buttons.bold.hotKey = b
183 buttons.italic.hotKey = i
184 buttons.strikethrough.hotKey = s
185 buttons.underline.hotkey = u
186
187 ## Configuration specific to the spellcheck button or SpellCheck feature
188 ## Enable the use of personal dictionaries
189 buttons.spellcheck.enablePersonalDictionaries = 1
190
191 ## Configuration of microdata schema
192 schema {
193 sources {
194 schemaOrg = EXT:rtehtmlarea/extensions/MicrodataSchema/res/schemaOrgAll.rdf
195 }
196 }
197 }
198
199 ## Use same processing as on entry to database to clean content pasted into the editor
200 RTE.default.enableWordClean.HTMLparser < RTE.default.proc.entryHTMLparser_db
201
202 ## front end RTE configuration
203 RTE.default.FE < RTE.default
204 RTE.default.FE.FE >
205 RTE.default.FE.userElements >
206 RTE.default.FE.userLinks >