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