[FEATURE][!!!][CONF] Deprecate various RTE configuration properties
[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
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.xml:justifyleft
12 value = text-align: left;
13 }
14 align-center {
15 name = LLL:EXT:rtehtmlarea/htmlarea/locallang_tooltips.xml:justifycenter
16 value = text-align: center;
17 }
18 align-right {
19 name = LLL:EXT:rtehtmlarea/htmlarea/locallang_tooltips.xml:justifyright
20 value = text-align: right;
21 }
22 csc-frame-frame1 {
23 name = LLL:EXT:rtehtmlarea/res/contentcss/locallang.xml:frame-frame1
24 value = background-color: #EDEBF1; border: 1px solid #333333;
25 }
26 csc-frame-frame2 {
27 name = LLL:EXT:rtehtmlarea/res/contentcss/locallang.xml:frame-frame2
28 value = background-color: #F5FFAA; border: 1px solid #333333;
29 }
30 important {
31 name = LLL:EXT:rtehtmlarea/res/contentcss/locallang.xml:important
32 value = color: #8A0020;
33 }
34 name-of-person {
35 name = LLL:EXT:rtehtmlarea/res/contentcss/locallang.xml:name-of-person
36 value = color: #10007B;
37 }
38 detail {
39 name = LLL:EXT:rtehtmlarea/res/contentcss/locallang.xml:detail
40 value = color: #186900;
41 }
42 component-items {
43 name = LLL:EXT:rtehtmlarea/res/contentcss/locallang.xml:component-items
44 value = color: #186900;
45 }
46 action-items {
47 name = LLL:EXT:rtehtmlarea/res/contentcss/locallang.xml:action-items
48 value = color: #8A0020;
49 }
50 component-items-ordered {
51 name = LLL:EXT:rtehtmlarea/res/contentcss/locallang.xml:component-items
52 value = color: #186900;
53 }
54 action-items-ordered {
55 name = LLL:EXT:rtehtmlarea/res/contentcss/locallang.xml: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.xml:external_link_altText
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 image = EXT:rtehtmlarea/res/accessibilityicons/img/external_link_new_window.gif
73 altText = LLL:EXT:rtehtmlarea/res/accessibilityicons/locallang.xml:external_link_new_window_altText
74 titleText = LLL:EXT:rtehtmlarea/res/accessibilityicons/locallang.xml: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.xml:internal_link_altText
81 titleText = LLL:EXT:rtehtmlarea/res/accessibilityicons/locallang.xml: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.xml:internal_link_new_window_altText
88 titleText = LLL:EXT:rtehtmlarea/res/accessibilityicons/locallang.xml: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.xml:download_altText
95 titleText = LLL:EXT:rtehtmlarea/res/accessibilityicons/locallang.xml: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.xml:mail_altText
102 titleText = LLL:EXT:rtehtmlarea/res/accessibilityicons/locallang.xml: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 ## Property ignoreMainStyleOverride is DEPRECATED as of TYPO3 4.6 and will be removed in TYPO3 4.8
135 ## Use stylesheet file rather than mainStyleOverride and inlineStyle properties to style the contents
136 ## When RTE.default.contentCSS is not specified, file EXT:rtehtmlarea/res/contentcsss/default.css is used.
137 ignoreMainStyleOverride = 1
138
139 ## For this demo, do not remove font, strike and u tags
140 proc.entryHTMLparser_db.removeTags := removeFromList(font,strike,u)
141
142 ## List all class selectors that are allowed on the way to the database
143 proc.allowedClasses (
144 external-link, external-link-new-window, internal-link, internal-link-new-window, download, mail,
145 align-left, align-center, align-right, align-justify,
146 csc-frame-frame1, csc-frame-frame2,
147 component-items, action-items,
148 component-items-ordered, action-items-ordered,
149 important, name-of-person, detail,
150 indent
151 )
152
153 ## Restrict the list of class selectors presented by the RTE to the following for the specified tags:
154 buttons.blockstyle.tags.div.allowedClasses (
155 align-left, align-center, align-right,
156 csc-frame-frame1, csc-frame-frame2
157 )
158 buttons.blockstyle.tags.table.allowedClasses = csc-frame-frame1, csc-frame-frame2
159 buttons.blockstyle.tags.td.allowedClasses = align-left, align-center, align-right
160 buttons.textstyle.tags.span.allowedClasses = important, name-of-person, detail
161
162 ## Configuration of links
163 ## These classes should also be in the list proc.allowedClasses
164 buttons.link.properties.class.allowedClasses = external-link, external-link-new-window, internal-link, internal-link-new-window, download, mail
165 buttons.link.page.properties.class.default = internal-link
166 buttons.link.url.properties.class.default = external-link-new-window
167 buttons.link.file.properties.class.default = download
168 buttons.link.mail.properties.class.default = mail
169
170 ## Show all applicable class selectors available in the style sheet file
171 buttons.blockstyle.showTagFreeClasses = 1
172 buttons.textstyle.showTagFreeClasses = 1
173
174 ## Configuration specific to the table button or TableOperations feature
175 ## Use the context menu instead of the toolbar for table operations, but keep toggleborders button in toolbar
176 ## Show borders on table creation
177 hideTableOperationsInToolbar = 1
178 buttons.toggleborders.keepInToolbar = 1
179 buttons.toggleborders.setOnTableCreation = 1
180
181 ## Configuration specific to the inserttag button or QuickTag feature
182 ## Do not allow insertion of the following tags
183 buttons.inserttag.denyTags = font, u, strike, table
184
185 ## Configuration specific to the bold and italic buttons
186 ## Add hotkeys associated with bold, italic, strikethrough and underline buttons
187 buttons.bold.hotKey = b
188 buttons.italic.hotKey = i
189 buttons.strikethrough.hotKey = s
190 buttons.underline.hotkey = u
191
192 ## Configuration specific to the spellcheck button or SpellCheck feature
193 ## Enable the use of personal dictionaries
194 buttons.spellcheck.enablePersonalDictionaries = 1
195 }
196
197 ## Use same processing as on entry to database to clean content pasted into the editor
198 RTE.default.enableWordClean.HTMLparser < RTE.default.proc.entryHTMLparser_db
199
200 ## front end RTE configuration
201 RTE.default.FE < RTE.default
202 RTE.default.FE.FE >
203 RTE.default.FE.userElements >
204 RTE.default.FE.userLinks >