ab878bf942614aebee33e2427e6380b249771d6d
[Packages/TYPO3.CMS.git] / typo3 / sysext / rtehtmlarea / res / 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 # TYPO3 CVS ID: $Id$
7 # ***************************************************************************************
8
9 ## Define labels and styles to be applied to class selectors in the interface of the RTE
10 ## 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 image = EXT:rtehtmlarea/res/accessibilityicons/img/external_link.gif
68 altText = LLL:EXT:rtehtmlarea/res/accessibilityicons/locallang.xml:external_link_altText
69 titleText = LLL:EXT:rtehtmlarea/res/accessibilityicons/locallang.xml:external_link_titleText
70 }
71 externalLinkInNewWindow {
72 class = external-link-new-window
73 type = url
74 image = EXT:rtehtmlarea/res/accessibilityicons/img/external_link_new_window.gif
75 altText = LLL:EXT:rtehtmlarea/res/accessibilityicons/locallang.xml:external_link_new_window_altText
76 titleText = LLL:EXT:rtehtmlarea/res/accessibilityicons/locallang.xml:external_link_new_window_titleText
77 }
78 internalLink {
79 class = internal-link
80 type = page
81 image = EXT:rtehtmlarea/res/accessibilityicons/img/internal_link.gif
82 altText = LLL:EXT:rtehtmlarea/res/accessibilityicons/locallang.xml:internal_link_altText
83 titleText = LLL:EXT:rtehtmlarea/res/accessibilityicons/locallang.xml:internal_link_titleText
84 }
85 internalLinkInNewWindow {
86 class = internal-link-new-window
87 type = page
88 image = EXT:rtehtmlarea/res/accessibilityicons/img/internal_link_new_window.gif
89 altText = LLL:EXT:rtehtmlarea/res/accessibilityicons/locallang.xml:internal_link_new_window_altText
90 titleText = LLL:EXT:rtehtmlarea/res/accessibilityicons/locallang.xml:internal_link_new_window_titleText
91 }
92 download {
93 class = download
94 type = file
95 image = EXT:rtehtmlarea/res/accessibilityicons/img/download.gif
96 altText = LLL:EXT:rtehtmlarea/res/accessibilityicons/locallang.xml:download_altText
97 titleText = LLL:EXT:rtehtmlarea/res/accessibilityicons/locallang.xml:download_titleText
98 }
99 mail {
100 class = mail
101 type = mail
102 image = EXT:rtehtmlarea/res/accessibilityicons/img/mail.gif
103 altText = LLL:EXT:rtehtmlarea/res/accessibilityicons/locallang.xml:mail_altText
104 titleText = LLL:EXT:rtehtmlarea/res/accessibilityicons/locallang.xml:mail_titleText
105 }
106 }
107
108 ## Default RTE configuration
109 RTE.default {
110
111 ## Markup options (htmlArea RTE only)
112 enableWordClean = 1
113 removeTrailingBR = 1
114 removeComments = 1
115 removeTags = center, o:p, sdfield
116 removeTagsAndContents = style,script
117
118 ## Allow img tags
119 proc.entryHTMLparser_db.tags.img >
120
121 ## Allow style attribute
122 proc.entryHTMLparser_db.tags {
123 p.allowedAttribs := addToList(style)
124 span.fixAttrib.style.unset >
125 }
126
127 ## Toolbar options
128 showButtons = *
129
130 ## More toolbar options (htmlArea RTE only)
131 keepButtonGroupTogether = 1
132
133 ## Enable status bar (htmlArea RTE only)
134 showStatusBar = 1
135
136 ## Add default example styles
137 ## Left, center and right alignment of text in paragraphs and cells.
138 inlineStyle.text-alignment (
139 p.align-left, h1.align-left, h2.align-left, h3.align-left, h4.align-left, h5.align-left, h6.align-left, td.align-left { text-align: left; }
140 p.align-center, h1.align-center, h2.align-center, h3.align-center, h4.align-center, h5.align-center, h6.align-center, td.align-center { text-align: center; }
141 p.align-right, h1.align-right, h2.align-right, h3.align-right, h4.align-right, h5.align-right, h6.align-right, td.align-right { text-align: right; }
142 )
143 ## Two frame examples taken from the example CSS file of CSS Styled Content extension and applied to p and table block elements.
144 inlineStyle.frames (
145 p.csc-frame-frame1, table.csc-frame-frame1 { background-color: #EDEBF1; padding: 2px 4px 2px 4px; border: 1px solid #333333; }
146 p.csc-frame-frame2, table.csc-frame-frame2 { background-color: #F5FFAA; padding: 2px 4px 2px 4px; border: 1px solid #333333; }
147 )
148 ## Bullet styles for unordered lists.
149 inlineStyle.ul (
150 ul.component-items { color: #186900; list-style-type: circle; }
151 ul.action-items { color: #8A0020; list-style-image: url(img/red_arrow_bullet.gif); }
152 )
153 ## Numbering styles for ordered lists.
154 inlineStyle.ol (
155 ol.component-items-ordered { color: #10007B; list-style-type: lower-roman; }
156 ol.action-items-ordered { color: #8A0020; list-style-type: lower-greek; }
157 )
158 ## Three inline text colors taken from the color scheme of CSS Styled Content extension.
159 inlineStyle.inline-text (
160 span.important { color: #8A0020; }
161 span.name-of-person { color: #10007B; }
162 span.detail { color: #186900; }
163 )
164
165 ## Use stylesheet file rather than the above mainStyleOverride and inlineStyle properties to style the contents (htmlArea RTE only)
166 ignoreMainStyleOverride = 1
167
168 ## For this demo, do not remove font, strike and u tags
169 proc.entryHTMLparser_db.removeTags := removeFromList(font,strike,u)
170
171 ## List all class selectors that are allowed on the way to the database
172 proc.allowedClasses (
173 external-link, external-link-new-window, internal-link, internal-link-new-window, download, mail,
174 align-left, align-center, align-right, align-justify,
175 csc-frame-frame1, csc-frame-frame2,
176 component-items, action-items,
177 component-items-ordered, action-items-ordered,
178 important, name-of-person, detail,
179 indent
180 )
181
182 ## classesParagraph, classesTable, classesTD, classesLinks, classesCharacter
183 ## Classic RTE: Specify the list of class selectors that should be presented in the RTE interface:
184 ## htmlArea RTE: Restrict the list of class selectors presented by the RTE to the following:
185 classesParagraph (
186 align-left, align-center, align-right,
187 csc-frame-frame1, csc-frame-frame2
188 )
189 classesTable = csc-frame-frame1, csc-frame-frame2
190 classesTD = align-left, align-center, align-right
191 classesLinks = external-link, external-link-new-window, internal-link, internal-link-new-window, download, mail
192 classesCharacter = important, name-of-person, detail
193
194 ## Configuration of the anchor accessibility feature (htmlArea RTE only)
195 ## These classes should also be in the list of allowedClasses.
196 classesAnchor = external-link, external-link-new-window, internal-link, internal-link-new-window, download, mail
197 classesAnchor.default {
198 page = internal-link
199 url = external-link-new-window
200 file = download
201 mail = mail
202 }
203
204 ## Show all applicable class selectors available in the style sheet file (htmlArea RTE only)
205 showTagFreeClasses = 1
206
207 ## Configuration specific to the table button or TableOperations feature (htmlArea RTE only)
208 ## Use the context menu instead of the toolbar for table operations, but keep toggleborders button in toolbar
209 hideTableOperationsInToolbar = 1
210 buttons.toggleborders.keepInToolbar = 1
211
212 ## Configuration specific to the inserttag button or QuickTag feature (htmlArea RTE only)
213 ## Do not allow insertion of the following tags
214 buttons.inserttag.denyTags = font, underline, strike, table
215
216 ## Configuration specific to the bold and italic buttons (htmlArea RTE only)
217 ## Add hotkeys associated with bold, italic, strikethrough and underline buttons
218 buttons.bold.hotKey = b
219 buttons.italic.hotKey = i
220 buttons.strikethrough.hotKey = s
221 buttons.underline.hotkey = u
222
223 ## Configuration specific to the spellcheck button or SpellCheck feature (htmlArea RTE only)
224 ## Enable the use of personal dictionaries
225 enablePersonalDicts = 1
226 }
227
228 ## Use same processing as on entry to database to clean content pasted into the editor
229 RTE.default.enableWordClean.HTMLparser < RTE.default.proc.entryHTMLparser_db
230
231 ## front end RTE configuration (htmlArea RTE only)
232 RTE.default.FE < RTE.default
233 RTE.default.FE.FE >
234 RTE.default.FE.userElements >
235 RTE.default.FE.userLinks >
236
237 ## tt_content TCEFORM configuration
238 ## Let use all the space available for more comfort.
239 TCEFORM.tt_content.bodytext.RTEfullScreenWidth= 100%