-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathubc_ckeditor_widgets.ckeditor5.yml
329 lines (316 loc) · 9.14 KB
/
ubc_ckeditor_widgets.ckeditor5.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
# If using yml to configure plugins, rename this to {module_name}.ckeditor5.yml.
# If using annotations, this file can be removed.
# @see https://www.drupal.org/docs/drupal-apis/plugin-api/annotations-based-plugins
# For information on using annotations to define plugins.
# @see the CKEditor 5 module's README.md for more details regarding plugin
# configuration options.
ubc_ckeditor_widgets_ubcaccordion:
# Use the provider: property for this plugin to depend on another module.
# Configuration that will be sent to CKEditor 5 JavaScript plugins.
ckeditor5:
plugins:
# form of [plugin dir].[plugin name]
- ubcAccordion.UbcAccordion
# *Additional configuration properties*
# Configuration that will be used directly by Drupal.
drupal:
label: Accordion
# The library loaded while using the editor.
library: ubc_ckeditor_widgets/ubc_accordion
# The library loaded when configuring the text format using this plugin.
admin_library: ubc_ckeditor_widgets/ubc_accordion.admin
toolbar_items:
# This should match the name of the corresponding plugin exported in the
# plugin's index.js.
UbcAccordion:
label: Accordion
# If the plugin does not provide elements, set this as
# `elements: false`
elements:
# Note that it necessary for elements to separately provide both the tag
# (i.e. `<h3>`) and the attribute being added to the tag
# (i.e. `<h3 class="accordion__title">`).
- <div>
- <div class hidden data-* aria-expanded>
# *Additional configuration properties*
ubc_ckeditor_widgets_ubcaccordiontoggle:
ckeditor5:
plugins:
- ubcAccordionToggle.UbcAccordionToggle
drupal:
label: Accordion Toggle
library: ubc_ckeditor_widgets/ubc_accordion_toggle
admin_library: ubc_ckeditor_widgets/ubc_accordion_toggle.admin
toolbar_items:
UbcAccordionToggle:
label: Accordion Toggle
elements:
- <button>
- <button class="text-xs widget-expandcollapse unit-button" data-state data-cke-ignore-events>
ubc_ckeditor_widgets_ubccardhorizontal:
ckeditor5:
plugins:
- ubcCardHorizontal.UbcCardHorizontal
config:
ubcCardHorizontal:
contentToolbar:
- 'ubcCardHorizontalLayoutOptions'
- '|'
- 'ubcCardHorizontalMarginOptions'
- '|'
- 'ubcCardHorizontalBackgroundOptions'
- '|'
- 'ubcCardHorizontalShadowToggle'
drupal:
label: Horizontal Card
library: ubc_ckeditor_widgets/ubc_card_horizontal
admin_library: ubc_ckeditor_widgets/ubc_card_horizontal.admin
toolbar_items:
UbcCardHorizontal:
label: Horizontal Card
elements:
- <div>
- <div class>
- <h2>
- <h2 class="card__title">
- <h3>
- <h3 class="card__title">
- <h4>
- <h4 class="card__title">
- <h5>
- <h5 class="card__title">
- <h6>
- <h6 class="card__title">
ubc_ckeditor_widgets_ubccardverticalone:
ckeditor5:
plugins:
- ubcCardVerticalOne.UbcCardVerticalOne
config:
ubcCardVerticalOne:
contentToolbar:
- 'ubcCardVerticalOneMarginOptions'
- '|'
- 'ubcCardVerticalOneBackgroundOptions'
- '|'
- 'ubcCardVerticalOneShadowToggle'
drupal:
label: Vertical Card
library: ubc_ckeditor_widgets/ubc_card_vertical_one
admin_library: ubc_ckeditor_widgets/ubc_card_vertical_one.admin
toolbar_items:
UbcCardVerticalOne:
label: Vertical Card
elements:
- <div>
- <div class>
- <h2>
- <h2 class="card__title">
- <h3>
- <h3 class="card__title">
- <h4>
- <h4 class="card__title">
- <h5>
- <h5 class="card__title">
- <h6>
- <h6 class="card__title">
ubc_ckeditor_widgets_ubccardverticaltwo:
ckeditor5:
plugins:
- ubcCardVerticalTwo.UbcCardVerticalTwo
config:
ubcCardVerticalTwo:
contentToolbar:
- 'ubcCardVerticalTwoMarginOptions'
- '|'
- 'ubcCardVerticalTwoGapOptions'
- '|'
- 'ubcCardVerticalTwoBackgroundOptions'
- '|'
- 'ubcCardVerticalTwoShadowToggle'
drupal:
label: Two Vertical Cards
library: ubc_ckeditor_widgets/ubc_card_vertical_two
admin_library: ubc_ckeditor_widgets/ubc_card_vertical_two.admin
toolbar_items:
UbcCardVerticalTwo:
label: Two Vertical Cards
elements:
- <div>
- <div class>
- <h2>
- <h2 class="card__title">
- <h3>
- <h3 class="card__title">
- <h4>
- <h4 class="card__title">
- <h5>
- <h5 class="card__title">
- <h6>
- <h6 class="card__title">
ubc_ckeditor_widgets_ubccardverticalthree:
ckeditor5:
plugins:
- ubcCardVerticalThree.UbcCardVerticalThree
config:
ubcCardVerticalThree:
contentToolbar:
- 'ubcCardVerticalThreeMarginOptions'
- '|'
- 'ubcCardVerticalThreeGapOptions'
- '|'
- 'ubcCardVerticalThreeBackgroundOptions'
- '|'
- 'ubcCardVerticalThreeShadowToggle'
drupal:
label: Three Vertical Cards
library: ubc_ckeditor_widgets/ubc_card_vertical_three
admin_library: ubc_ckeditor_widgets/ubc_card_vertical_three.admin
toolbar_items:
UbcCardVerticalThree:
label: Three Vertical Cards
elements:
- <div>
- <div class>
- <h2>
- <h2 class="card__title">
- <h3>
- <h3 class="card__title">
- <h4>
- <h4 class="card__title">
- <h5>
- <h5 class="card__title">
- <h6>
- <h6 class="card__title">
ubc_ckeditor_widgets_ubccolorbox:
ckeditor5:
plugins:
- ubcColorBox.UbcColorBox
config:
ubcColorBox:
contentToolbar:
- 'ubcColorBoxAlignFull'
- 'ubcColorBoxAlignLeft'
- 'ubcColorBoxAlignCenter'
- 'ubcColorBoxAlignRight'
- '|'
- 'ubcColorBoxPaddingOptions'
- '|'
- 'ubcColorBoxMarginOptions'
- '|'
- 'ubcColorBoxBackgroundOptions'
- '|'
- 'ubcColorBoxShadowToggle'
drupal:
label: Color Box
library: ubc_ckeditor_widgets/ubc_color_box
admin_library: ubc_ckeditor_widgets/ubc_color_box.admin
toolbar_items:
UbcColorBox:
label: Color Box
elements:
- <div>
- <div class>
ubc_ckeditor_widgets_ubccolumnstwo:
ckeditor5:
plugins:
- ubcColumnsTwo.UbcColumnsTwo
config:
ubcColumnsTwo:
contentToolbar:
- 'ubcColumnsTwoLayoutOptions'
- '|'
- 'ubcColumnsTwoMarginOptions'
- '|'
- 'ubcColumnsTwoGapOptions'
- '|'
- 'ubcColumnsTwoKeylineToggle'
drupal:
label: Two Columns
library: ubc_ckeditor_widgets/ubc_columns_two
admin_library: ubc_ckeditor_widgets/ubc_columns_two.admin
toolbar_items:
UbcColumnsTwo:
label: Two Columns
elements:
- <div>
- <div class>
ubc_ckeditor_widgets_ubccolumnsthree:
ckeditor5:
plugins:
- ubcColumnsThree.UbcColumnsThree
config:
ubcColumnsThree:
contentToolbar:
- 'ubcColumnsThreeLayoutOptions'
- '|'
- 'ubcColumnsThreeMarginOptions'
- '|'
- 'ubcColumnsThreeGapOptions'
- '|'
- 'ubcColumnsThreeKeylineToggle'
drupal:
label: Three Columns
library: ubc_ckeditor_widgets/ubc_columns_three
admin_library: ubc_ckeditor_widgets/ubc_columns_three.admin
toolbar_items:
UbcColumnsThree:
label: Three Columns
elements:
- <div>
- <div class>
ubc_ckeditor_widgets_ubccolumnsfour:
ckeditor5:
plugins:
- ubcColumnsFour.UbcColumnsFour
config:
ubcColumnsFour:
contentToolbar:
- 'ubcColumnsFourMarginOptions'
- '|'
- 'ubcColumnsFourGapOptions'
- '|'
- 'ubcColumnsFourKeylineToggle'
drupal:
label: Four Columns
library: ubc_ckeditor_widgets/ubc_columns_four
admin_library: ubc_ckeditor_widgets/ubc_columns_four.admin
toolbar_items:
UbcColumnsFour:
label: Four Columns
elements:
- <div>
- <div class>
ubc_ckeditor_widgets_ubctableclass:
ckeditor5:
plugins:
- ubcTableClass.UbcTableClass
config:
table:
contentToolbar: [ tableUbc ]
drupal:
label: UBC Table Toolbar Items
library: ubc_ckeditor_widgets/ubc_table
elements:
- <figure>
- <figure class="responsive-figure-table" aria-live>
- <table>
- <table class="table--plain table--condensed table--striped table--hover">
conditions:
plugins: [ ckeditor5_table ]
ubc_ckeditor_widgets_ubctablecellclass:
ckeditor5:
plugins:
- ubcTableCellClass.UbcTableCellClass
config:
table:
contentToolbar: [ tableCellUbc ]
drupal:
label: UBC Table Cell Toolbar Items
library: ubc_ckeditor_widgets/ubc_table_cell
elements:
- <th>
- <th class="w-half w-one-third w-one-quarter w-one-fifth w-one-sixth">
- <td>
- <td class="w-half w-one-third w-one-quarter w-one-fifth w-one-sixth">
conditions:
plugins: [ ckeditor5_table ]