Skip to content

Commit 8036736

Browse files
committed
API Remove code which is being migrated to a new TinyMCE module
1 parent a31947a commit 8036736

33 files changed

+1875
-2234
lines changed

_config/html.yml

Lines changed: 271 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,275 @@ Name: corehtml
33
---
44
SilverStripe\Core\Injector\Injector:
55
SilverStripe\Forms\HTMLEditor\HTMLEditorConfig:
6-
class: SilverStripe\Forms\HTMLEditor\TinyMCEConfig
7-
SilverStripe\Forms\HTMLEditor\TinyMCEScriptGenerator: '%$SilverStripe\Forms\HTMLEditor\TinyMCECombinedGenerator'
8-
SilverStripe\Forms\HTMLEditor\TinyMCECombinedGenerator:
9-
class: SilverStripe\Forms\HTMLEditor\TinyMCECombinedGenerator
10-
properties:
11-
AssetHandler: '%$SilverStripe\Assets\Storage\GeneratedAssetHandler'
6+
class: 'SilverStripe\Forms\HTMLEditor\TextAreaConfig'
127

13-
SilverStripe\Forms\HTMLEditor\TinyMCEConfig:
14-
image_size_presets:
15-
- width: 600
16-
i18n: SilverStripe\Forms\HTMLEditor\TinyMCEConfig.BEST_FIT
17-
text: Best fit
18-
name: bestfit
19-
default: true
20-
- i18n: SilverStripe\Forms\HTMLEditor\TinyMCEConfig.ORIGINAL
21-
text: Original
22-
name: originalsize
8+
SilverStripe\Forms\HTMLEditor\HTMLEditorConfig:
9+
default_element_rules:
10+
_global:
11+
attributes:
12+
# @TODO consider using [id:true, class:true] syntax
13+
id: true
14+
class: true
15+
style: true
16+
title: true
17+
a:
18+
attributes:
19+
accesskey: true
20+
class: true
21+
dir: true
22+
href: true
23+
id: true
24+
name: true
25+
rel: true
26+
rev: true
27+
target: true
28+
tabindex: true
29+
title: true
30+
type: true
31+
address:
32+
attributes:
33+
class: true
34+
align: true
35+
b:
36+
convertTo: 'strong'
37+
blockquote:
38+
removeIfEmpty: true
39+
attributes:
40+
dir: true
41+
class: true
42+
br: true
43+
caption:
44+
attributes:
45+
id: true
46+
dir: true
47+
class: true
48+
cite:
49+
removeIfEmpty: true
50+
attributes:
51+
dir: true
52+
class: true
53+
id: true
54+
title: true
55+
dd:
56+
attributes:
57+
id: true
58+
class: true
59+
title: true
60+
dir: true
61+
div:
62+
removeIfEmpty: true
63+
attributes:
64+
id: true
65+
dir: true
66+
class: true
67+
align: true
68+
style: true
69+
dl:
70+
attributes:
71+
id: true
72+
class: true
73+
title: true
74+
dir: true
75+
dt:
76+
attributes:
77+
id: true
78+
class: true
79+
title: true
80+
dir: true
81+
em:
82+
removeIfEmpty: true
83+
attributes:
84+
class: true
85+
h1:
86+
removeIfEmpty: true
87+
attributes:
88+
id: true
89+
dir: true
90+
class: true
91+
align: true
92+
style: true
93+
h2:
94+
removeIfEmpty: true
95+
attributes:
96+
id: true
97+
dir: true
98+
class: true
99+
align: true
100+
style: true
101+
h3:
102+
removeIfEmpty: true
103+
attributes:
104+
id: true
105+
dir: true
106+
class: true
107+
align: true
108+
style: true
109+
h4:
110+
removeIfEmpty: true
111+
attributes:
112+
id: true
113+
dir: true
114+
class: true
115+
align: true
116+
style: true
117+
h5:
118+
removeIfEmpty: true
119+
attributes:
120+
id: true
121+
dir: true
122+
class: true
123+
align: true
124+
style: true
125+
h6:
126+
removeIfEmpty: true
127+
attributes:
128+
id: true
129+
dir: true
130+
class: true
131+
align: true
132+
style: true
133+
hr:
134+
attributes:
135+
class: true
136+
i:
137+
convertTo: 'em'
138+
img:
139+
attributes:
140+
id: true
141+
dir: true
142+
longdesc: true
143+
usemap: true
144+
class: true
145+
src: true
146+
border: true
147+
alt=: true
148+
title: true
149+
hspace: true
150+
vspace: true
151+
width: true
152+
height: true
153+
align: true
154+
name: true
155+
data*: true
156+
li:
157+
removeIfEmpty: true
158+
attributes:
159+
class: true
160+
ol:
161+
removeIfEmpty: true
162+
attributes:
163+
class: true
164+
p:
165+
padIfEmpty: true
166+
attributes:
167+
align: true
168+
class: true
169+
dir: true
170+
id: true
171+
style: true
172+
pre:
173+
removeIfEmpty: true
174+
attributes:
175+
class: true
176+
align: true
177+
span:
178+
removeIfEmpty: true
179+
attributes:
180+
class: true
181+
align: true
182+
style: true
183+
strike:
184+
removeIfEmpty: true
185+
attributes:
186+
class: true
187+
strong:
188+
removeIfEmpty: true
189+
attributes:
190+
class: true
191+
sub:
192+
removeIfEmpty: true
193+
attributes:
194+
class: true
195+
sup:
196+
removeIfEmpty: true
197+
attributes:
198+
class: true
199+
table:
200+
removeIfEmpty: true
201+
attributes:
202+
cellspacing: true
203+
cellpadding: true
204+
width: true
205+
height: true
206+
class: true
207+
align: true
208+
summary: true
209+
dir: true
210+
id: true
211+
style: true
212+
tbody:
213+
attributes:
214+
id: true
215+
class: true
216+
style: true
217+
td:
218+
padIfEmpty: true
219+
attributes:
220+
id: true
221+
dir: true
222+
class: true
223+
colspan: true
224+
rowspan: true
225+
width: true
226+
height: true
227+
align: true
228+
valign: true
229+
scope: true
230+
style: true
231+
th:
232+
padIfEmpty: true
233+
attributes:
234+
id: true
235+
dir: true
236+
class: true
237+
colspan: true
238+
rowspan: true
239+
width: true
240+
height: true
241+
align: true
242+
valign: true
243+
scope: true
244+
style: true
245+
thead:
246+
attributes:
247+
id: true
248+
class: true
249+
style: true
250+
tfoot:
251+
attributes:
252+
id: true
253+
class: true
254+
style: true
255+
tr:
256+
removeIfEmpty: true
257+
attributes:
258+
id: true
259+
dir: true
260+
class: true
261+
rowspan: true
262+
width: true
263+
height: true
264+
align: true
265+
valign: true
266+
bgcolor: true
267+
background: true
268+
bordercolor: true
269+
style: true
270+
u:
271+
removeIfEmpty: true
272+
attributes:
273+
class: true
274+
ul:
275+
removeIfEmpty: true
276+
attributes:
277+
class: true

0 commit comments

Comments
 (0)