Skip to content

Commit 19ec36b

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

33 files changed

+1892
-2234
lines changed

_config/html.yml

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

0 commit comments

Comments
 (0)