@ckeditor/ckeditor5-html-support 47.6.1 → 48.0.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (208) hide show
  1. package/LICENSE.md +1 -1
  2. package/ckeditor5-metadata.json +6 -6
  3. package/{src → dist}/converters.d.ts +2 -2
  4. package/{src → dist}/datafilter.d.ts +3 -3
  5. package/{src → dist}/dataschema.d.ts +2 -2
  6. package/{src → dist}/emptyblock.d.ts +1 -1
  7. package/{src → dist}/fullpage.d.ts +1 -1
  8. package/{src → dist}/generalhtmlsupport.d.ts +3 -3
  9. package/{src → dist}/generalhtmlsupportconfig.d.ts +1 -1
  10. package/{src → dist}/htmlcomment.d.ts +2 -2
  11. package/{src → dist}/htmlpagedataprocessor.d.ts +1 -1
  12. package/dist/index-editor.css +29 -29
  13. package/dist/index.css +30 -40
  14. package/dist/index.css.map +1 -1
  15. package/dist/index.js +29 -8
  16. package/dist/index.js.map +1 -1
  17. package/{src → dist}/integrations/codeblock.d.ts +1 -1
  18. package/{src → dist}/integrations/customelement.d.ts +1 -1
  19. package/{src → dist}/integrations/dualcontent.d.ts +1 -1
  20. package/{src → dist}/integrations/heading.d.ts +2 -2
  21. package/{src → dist}/integrations/horizontalline.d.ts +1 -1
  22. package/{src → dist}/integrations/iframe.d.ts +1 -1
  23. package/{src → dist}/integrations/image.d.ts +1 -1
  24. package/{src → dist}/integrations/integrationutils.d.ts +1 -1
  25. package/{src → dist}/integrations/list.d.ts +1 -1
  26. package/{src → dist}/integrations/mediaembed.d.ts +1 -1
  27. package/{src → dist}/integrations/script.d.ts +1 -1
  28. package/{src → dist}/integrations/style.d.ts +1 -1
  29. package/{src → dist}/integrations/table.d.ts +1 -1
  30. package/{src → dist}/schemadefinitions.d.ts +2 -2
  31. package/{src → dist}/utils.d.ts +1 -1
  32. package/package.json +30 -53
  33. package/build/html-support.js +0 -5
  34. package/build/translations/af.js +0 -1
  35. package/build/translations/ar.js +0 -1
  36. package/build/translations/ast.js +0 -1
  37. package/build/translations/az.js +0 -1
  38. package/build/translations/be.js +0 -1
  39. package/build/translations/bg.js +0 -1
  40. package/build/translations/bn.js +0 -1
  41. package/build/translations/bs.js +0 -1
  42. package/build/translations/ca.js +0 -1
  43. package/build/translations/cs.js +0 -1
  44. package/build/translations/da.js +0 -1
  45. package/build/translations/de-ch.js +0 -1
  46. package/build/translations/de.js +0 -1
  47. package/build/translations/el.js +0 -1
  48. package/build/translations/en-au.js +0 -1
  49. package/build/translations/en-gb.js +0 -1
  50. package/build/translations/eo.js +0 -1
  51. package/build/translations/es-co.js +0 -1
  52. package/build/translations/es.js +0 -1
  53. package/build/translations/et.js +0 -1
  54. package/build/translations/eu.js +0 -1
  55. package/build/translations/fa.js +0 -1
  56. package/build/translations/fi.js +0 -1
  57. package/build/translations/fr.js +0 -1
  58. package/build/translations/gl.js +0 -1
  59. package/build/translations/gu.js +0 -1
  60. package/build/translations/he.js +0 -1
  61. package/build/translations/hi.js +0 -1
  62. package/build/translations/hr.js +0 -1
  63. package/build/translations/hu.js +0 -1
  64. package/build/translations/hy.js +0 -1
  65. package/build/translations/id.js +0 -1
  66. package/build/translations/it.js +0 -1
  67. package/build/translations/ja.js +0 -1
  68. package/build/translations/jv.js +0 -1
  69. package/build/translations/kk.js +0 -1
  70. package/build/translations/km.js +0 -1
  71. package/build/translations/kn.js +0 -1
  72. package/build/translations/ko.js +0 -1
  73. package/build/translations/ku.js +0 -1
  74. package/build/translations/lt.js +0 -1
  75. package/build/translations/lv.js +0 -1
  76. package/build/translations/ms.js +0 -1
  77. package/build/translations/nb.js +0 -1
  78. package/build/translations/ne.js +0 -1
  79. package/build/translations/nl.js +0 -1
  80. package/build/translations/no.js +0 -1
  81. package/build/translations/oc.js +0 -1
  82. package/build/translations/pl.js +0 -1
  83. package/build/translations/pt-br.js +0 -1
  84. package/build/translations/pt.js +0 -1
  85. package/build/translations/ro.js +0 -1
  86. package/build/translations/ru.js +0 -1
  87. package/build/translations/si.js +0 -1
  88. package/build/translations/sk.js +0 -1
  89. package/build/translations/sl.js +0 -1
  90. package/build/translations/sq.js +0 -1
  91. package/build/translations/sr-latn.js +0 -1
  92. package/build/translations/sr.js +0 -1
  93. package/build/translations/sv.js +0 -1
  94. package/build/translations/th.js +0 -1
  95. package/build/translations/ti.js +0 -1
  96. package/build/translations/tk.js +0 -1
  97. package/build/translations/tr.js +0 -1
  98. package/build/translations/tt.js +0 -1
  99. package/build/translations/ug.js +0 -1
  100. package/build/translations/uk.js +0 -1
  101. package/build/translations/ur.js +0 -1
  102. package/build/translations/uz.js +0 -1
  103. package/build/translations/vi.js +0 -1
  104. package/build/translations/zh-cn.js +0 -1
  105. package/build/translations/zh.js +0 -1
  106. package/lang/contexts.json +0 -3
  107. package/lang/translations/af.po +0 -16
  108. package/lang/translations/ar.po +0 -16
  109. package/lang/translations/ast.po +0 -16
  110. package/lang/translations/az.po +0 -16
  111. package/lang/translations/be.po +0 -16
  112. package/lang/translations/bg.po +0 -16
  113. package/lang/translations/bn.po +0 -16
  114. package/lang/translations/bs.po +0 -16
  115. package/lang/translations/ca.po +0 -16
  116. package/lang/translations/cs.po +0 -16
  117. package/lang/translations/da.po +0 -16
  118. package/lang/translations/de-ch.po +0 -16
  119. package/lang/translations/de.po +0 -16
  120. package/lang/translations/el.po +0 -16
  121. package/lang/translations/en-au.po +0 -16
  122. package/lang/translations/en-gb.po +0 -16
  123. package/lang/translations/en.po +0 -16
  124. package/lang/translations/eo.po +0 -16
  125. package/lang/translations/es-co.po +0 -16
  126. package/lang/translations/es.po +0 -16
  127. package/lang/translations/et.po +0 -16
  128. package/lang/translations/eu.po +0 -16
  129. package/lang/translations/fa.po +0 -16
  130. package/lang/translations/fi.po +0 -16
  131. package/lang/translations/fr.po +0 -16
  132. package/lang/translations/gl.po +0 -16
  133. package/lang/translations/gu.po +0 -16
  134. package/lang/translations/he.po +0 -16
  135. package/lang/translations/hi.po +0 -16
  136. package/lang/translations/hr.po +0 -16
  137. package/lang/translations/hu.po +0 -16
  138. package/lang/translations/hy.po +0 -16
  139. package/lang/translations/id.po +0 -16
  140. package/lang/translations/it.po +0 -16
  141. package/lang/translations/ja.po +0 -16
  142. package/lang/translations/jv.po +0 -16
  143. package/lang/translations/kk.po +0 -16
  144. package/lang/translations/km.po +0 -16
  145. package/lang/translations/kn.po +0 -16
  146. package/lang/translations/ko.po +0 -16
  147. package/lang/translations/ku.po +0 -16
  148. package/lang/translations/lt.po +0 -16
  149. package/lang/translations/lv.po +0 -16
  150. package/lang/translations/ms.po +0 -16
  151. package/lang/translations/nb.po +0 -16
  152. package/lang/translations/ne.po +0 -16
  153. package/lang/translations/nl.po +0 -16
  154. package/lang/translations/no.po +0 -16
  155. package/lang/translations/oc.po +0 -16
  156. package/lang/translations/pl.po +0 -16
  157. package/lang/translations/pt-br.po +0 -16
  158. package/lang/translations/pt.po +0 -16
  159. package/lang/translations/ro.po +0 -16
  160. package/lang/translations/ru.po +0 -16
  161. package/lang/translations/si.po +0 -16
  162. package/lang/translations/sk.po +0 -16
  163. package/lang/translations/sl.po +0 -16
  164. package/lang/translations/sq.po +0 -16
  165. package/lang/translations/sr-latn.po +0 -16
  166. package/lang/translations/sr.po +0 -16
  167. package/lang/translations/sv.po +0 -16
  168. package/lang/translations/th.po +0 -16
  169. package/lang/translations/ti.po +0 -16
  170. package/lang/translations/tk.po +0 -16
  171. package/lang/translations/tr.po +0 -16
  172. package/lang/translations/tt.po +0 -16
  173. package/lang/translations/ug.po +0 -16
  174. package/lang/translations/uk.po +0 -16
  175. package/lang/translations/ur.po +0 -16
  176. package/lang/translations/uz.po +0 -16
  177. package/lang/translations/vi.po +0 -16
  178. package/lang/translations/zh-cn.po +0 -16
  179. package/lang/translations/zh.po +0 -16
  180. package/src/augmentation.js +0 -5
  181. package/src/converters.js +0 -190
  182. package/src/datafilter.js +0 -837
  183. package/src/dataschema.js +0 -199
  184. package/src/emptyblock.js +0 -146
  185. package/src/fullpage.js +0 -184
  186. package/src/generalhtmlsupport.js +0 -257
  187. package/src/generalhtmlsupportconfig.js +0 -5
  188. package/src/htmlcomment.js +0 -225
  189. package/src/htmlpagedataprocessor.js +0 -70
  190. package/src/index.js +0 -31
  191. package/src/integrations/codeblock.js +0 -107
  192. package/src/integrations/customelement.js +0 -166
  193. package/src/integrations/dualcontent.js +0 -126
  194. package/src/integrations/heading.js +0 -72
  195. package/src/integrations/horizontalline.js +0 -80
  196. package/src/integrations/iframe.js +0 -76
  197. package/src/integrations/image.js +0 -195
  198. package/src/integrations/integrationutils.js +0 -21
  199. package/src/integrations/list.js +0 -185
  200. package/src/integrations/mediaembed.js +0 -125
  201. package/src/integrations/script.js +0 -66
  202. package/src/integrations/style.js +0 -66
  203. package/src/integrations/table.js +0 -209
  204. package/src/schemadefinitions.js +0 -979
  205. package/src/utils.js +0 -169
  206. package/theme/datafilter.css +0 -56
  207. /package/{src → dist}/augmentation.d.ts +0 -0
  208. /package/{src → dist}/index.d.ts +0 -0
@@ -1,979 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
5
- /**
6
- * @module html-support/schemadefinitions
7
- */
8
- /**
9
- * Skipped elements due to HTML deprecation:
10
- * * noframes (not sure if we should provide support for this element. CKE4 is not supporting frameset and frame,
11
- * but it will unpack <frameset><noframes>foobar</noframes></frameset> to <noframes>foobar</noframes>, so there
12
- * may be some content loss. Although using noframes as a standalone element seems invalid)
13
- * * keygen (this one is also empty)
14
- * * applet (support is limited mostly to old IE)
15
- * * basefont (this one is also empty)
16
- * * isindex (basically no support for modern browsers at all)
17
- *
18
- * Skipped elements due to lack empty element support:
19
- * * hr
20
- * * area
21
- * * br
22
- * * command
23
- * * map
24
- * * wbr
25
- * * colgroup -> col
26
- *
27
- * Skipped elements due to complexity:
28
- * * datalist with option elements used as a data source for input[list] element
29
- *
30
- * Skipped elements as they are handled as an object content:
31
- * * track
32
- * * source
33
- * * option
34
- * * param
35
- * * optgroup
36
- *
37
- * Skipped full page HTML elements:
38
- * * body
39
- * * html
40
- * * title
41
- * * head
42
- * * meta
43
- * * link
44
- * * etc...
45
- *
46
- * Skipped hidden elements:
47
- * noscript
48
- *
49
- * When adding elements to this list, update the feature guide listing, too.
50
- *
51
- * @internal
52
- */
53
- export const defaultConfig = {
54
- block: [
55
- // Existing features.
56
- {
57
- model: 'codeBlock',
58
- view: 'pre'
59
- },
60
- {
61
- model: 'paragraph',
62
- view: 'p'
63
- },
64
- {
65
- model: 'blockQuote',
66
- view: 'blockquote'
67
- },
68
- {
69
- model: 'listItem',
70
- view: 'li'
71
- },
72
- {
73
- model: 'pageBreak',
74
- view: 'div'
75
- },
76
- {
77
- model: 'rawHtml',
78
- view: 'div'
79
- },
80
- {
81
- model: 'table',
82
- view: 'table'
83
- },
84
- {
85
- model: 'tableRow',
86
- view: 'tr'
87
- },
88
- {
89
- model: 'tableCell',
90
- view: 'td'
91
- },
92
- {
93
- model: 'tableCell',
94
- view: 'th'
95
- },
96
- {
97
- model: 'tableColumnGroup',
98
- view: 'colgroup'
99
- },
100
- {
101
- model: 'tableColumn',
102
- view: 'col'
103
- },
104
- {
105
- model: 'caption',
106
- view: 'caption'
107
- },
108
- {
109
- model: 'caption',
110
- view: 'figcaption'
111
- },
112
- {
113
- model: 'imageBlock',
114
- view: 'img'
115
- },
116
- {
117
- model: 'imageInline',
118
- view: 'img'
119
- },
120
- {
121
- model: 'horizontalLine',
122
- view: 'hr'
123
- },
124
- // Compatibility features.
125
- {
126
- model: 'htmlP',
127
- view: 'p',
128
- modelSchema: {
129
- inheritAllFrom: '$block'
130
- }
131
- },
132
- {
133
- model: 'htmlBlockquote',
134
- view: 'blockquote',
135
- modelSchema: {
136
- inheritAllFrom: '$container'
137
- }
138
- },
139
- {
140
- model: 'htmlTable',
141
- view: 'table',
142
- modelSchema: {
143
- allowWhere: '$block',
144
- isBlock: true
145
- }
146
- },
147
- {
148
- model: 'htmlTbody',
149
- view: 'tbody',
150
- modelSchema: {
151
- allowIn: 'htmlTable',
152
- isBlock: false
153
- }
154
- },
155
- {
156
- model: 'htmlThead',
157
- view: 'thead',
158
- modelSchema: {
159
- allowIn: 'htmlTable',
160
- isBlock: false
161
- }
162
- },
163
- {
164
- model: 'htmlTfoot',
165
- view: 'tfoot',
166
- modelSchema: {
167
- allowIn: 'htmlTable',
168
- isBlock: false
169
- }
170
- },
171
- {
172
- model: 'htmlCaption',
173
- view: 'caption',
174
- modelSchema: {
175
- allowIn: 'htmlTable',
176
- allowChildren: '$text',
177
- isBlock: false
178
- }
179
- },
180
- {
181
- model: 'htmlColgroup',
182
- view: 'colgroup',
183
- modelSchema: {
184
- allowIn: 'htmlTable',
185
- allowChildren: 'col',
186
- isBlock: false
187
- }
188
- },
189
- {
190
- model: 'htmlCol',
191
- view: 'col',
192
- modelSchema: {
193
- allowIn: 'htmlColgroup',
194
- isBlock: false
195
- }
196
- },
197
- {
198
- model: 'htmlTr',
199
- view: 'tr',
200
- modelSchema: {
201
- allowIn: ['htmlTable', 'htmlThead', 'htmlTbody'],
202
- isLimit: true
203
- }
204
- },
205
- // TODO can also include text.
206
- {
207
- model: 'htmlTd',
208
- view: 'td',
209
- modelSchema: {
210
- allowIn: 'htmlTr',
211
- allowContentOf: '$container',
212
- isLimit: true,
213
- isBlock: false
214
- }
215
- },
216
- // TODO can also include text.
217
- {
218
- model: 'htmlTh',
219
- view: 'th',
220
- modelSchema: {
221
- allowIn: 'htmlTr',
222
- allowContentOf: '$container',
223
- isLimit: true,
224
- isBlock: false
225
- }
226
- },
227
- // TODO can also include text.
228
- {
229
- model: 'htmlFigure',
230
- view: 'figure',
231
- modelSchema: {
232
- inheritAllFrom: '$container',
233
- isBlock: false
234
- }
235
- },
236
- // TODO can also include other block elements.
237
- {
238
- model: 'htmlFigcaption',
239
- view: 'figcaption',
240
- modelSchema: {
241
- allowIn: 'htmlFigure',
242
- allowChildren: '$text',
243
- isBlock: false
244
- }
245
- },
246
- // TODO can also include text.
247
- {
248
- model: 'htmlAddress',
249
- view: 'address',
250
- modelSchema: {
251
- inheritAllFrom: '$container',
252
- isBlock: false
253
- }
254
- },
255
- // TODO can also include text.
256
- {
257
- model: 'htmlAside',
258
- view: 'aside',
259
- modelSchema: {
260
- inheritAllFrom: '$container',
261
- isBlock: false
262
- }
263
- },
264
- // TODO can also include text.
265
- {
266
- model: 'htmlMain',
267
- view: 'main',
268
- modelSchema: {
269
- inheritAllFrom: '$container',
270
- isBlock: false
271
- }
272
- },
273
- // TODO can also include text.
274
- {
275
- model: 'htmlDetails',
276
- view: 'details',
277
- modelSchema: {
278
- inheritAllFrom: '$container',
279
- isBlock: false
280
- }
281
- },
282
- {
283
- model: 'htmlSummary',
284
- view: 'summary',
285
- modelSchema: {
286
- allowChildren: [
287
- 'htmlH1',
288
- 'htmlH2',
289
- 'htmlH3',
290
- 'htmlH4',
291
- 'htmlH5',
292
- 'htmlH6',
293
- '$text'
294
- ],
295
- allowIn: 'htmlDetails',
296
- isBlock: false
297
- }
298
- },
299
- {
300
- model: 'htmlDiv',
301
- view: 'div',
302
- paragraphLikeModel: 'htmlDivParagraph',
303
- modelSchema: {
304
- inheritAllFrom: '$container'
305
- }
306
- },
307
- // TODO can also include text.
308
- {
309
- model: 'htmlFieldset',
310
- view: 'fieldset',
311
- modelSchema: {
312
- inheritAllFrom: '$container',
313
- isBlock: false
314
- }
315
- },
316
- // TODO can also include h1-h6.
317
- {
318
- model: 'htmlLegend',
319
- view: 'legend',
320
- modelSchema: {
321
- allowIn: 'htmlFieldset',
322
- allowChildren: '$text'
323
- }
324
- },
325
- // TODO can also include text.
326
- {
327
- model: 'htmlHeader',
328
- view: 'header',
329
- modelSchema: {
330
- inheritAllFrom: '$container',
331
- isBlock: false
332
- }
333
- },
334
- // TODO can also include text.
335
- {
336
- model: 'htmlFooter',
337
- view: 'footer',
338
- modelSchema: {
339
- inheritAllFrom: '$container',
340
- isBlock: false
341
- }
342
- },
343
- // TODO can also include text.
344
- {
345
- model: 'htmlForm',
346
- view: 'form',
347
- modelSchema: {
348
- inheritAllFrom: '$container',
349
- isBlock: true
350
- }
351
- },
352
- {
353
- model: 'htmlHgroup',
354
- view: 'hgroup',
355
- modelSchema: {
356
- allowIn: ['$root', '$container'],
357
- allowChildren: [
358
- 'paragraph',
359
- 'htmlP',
360
- 'htmlH1',
361
- 'htmlH2',
362
- 'htmlH3',
363
- 'htmlH4',
364
- 'htmlH5',
365
- 'htmlH6'
366
- ],
367
- isBlock: false
368
- }
369
- },
370
- {
371
- model: 'htmlH1',
372
- view: 'h1',
373
- modelSchema: {
374
- inheritAllFrom: '$block'
375
- }
376
- },
377
- {
378
- model: 'htmlH2',
379
- view: 'h2',
380
- modelSchema: {
381
- inheritAllFrom: '$block'
382
- }
383
- },
384
- {
385
- model: 'htmlH3',
386
- view: 'h3',
387
- modelSchema: {
388
- inheritAllFrom: '$block'
389
- }
390
- },
391
- {
392
- model: 'htmlH4',
393
- view: 'h4',
394
- modelSchema: {
395
- inheritAllFrom: '$block'
396
- }
397
- },
398
- {
399
- model: 'htmlH5',
400
- view: 'h5',
401
- modelSchema: {
402
- inheritAllFrom: '$block'
403
- }
404
- },
405
- {
406
- model: 'htmlH6',
407
- view: 'h6',
408
- modelSchema: {
409
- inheritAllFrom: '$block'
410
- }
411
- },
412
- {
413
- model: '$htmlList',
414
- modelSchema: {
415
- allowWhere: '$container',
416
- allowChildren: ['$htmlList', 'htmlLi'],
417
- isBlock: false
418
- }
419
- },
420
- {
421
- model: 'htmlDir',
422
- view: 'dir',
423
- modelSchema: {
424
- inheritAllFrom: '$htmlList'
425
- }
426
- },
427
- {
428
- model: 'htmlMenu',
429
- view: 'menu',
430
- modelSchema: {
431
- inheritAllFrom: '$htmlList'
432
- }
433
- },
434
- {
435
- model: 'htmlUl',
436
- view: 'ul',
437
- modelSchema: {
438
- inheritAllFrom: '$htmlList'
439
- }
440
- },
441
- {
442
- model: 'htmlOl',
443
- view: 'ol',
444
- modelSchema: {
445
- inheritAllFrom: '$htmlList'
446
- }
447
- },
448
- // TODO can also include other block elements.
449
- {
450
- model: 'htmlLi',
451
- view: 'li',
452
- modelSchema: {
453
- allowIn: '$htmlList',
454
- allowChildren: '$text',
455
- isBlock: false
456
- }
457
- },
458
- {
459
- model: 'htmlPre',
460
- view: 'pre',
461
- modelSchema: {
462
- inheritAllFrom: '$block'
463
- }
464
- },
465
- {
466
- model: 'htmlArticle',
467
- view: 'article',
468
- modelSchema: {
469
- inheritAllFrom: '$container',
470
- isBlock: false
471
- }
472
- },
473
- {
474
- model: 'htmlSection',
475
- view: 'section',
476
- modelSchema: {
477
- inheritAllFrom: '$container',
478
- isBlock: false
479
- }
480
- },
481
- // TODO can also include text.
482
- {
483
- model: 'htmlNav',
484
- view: 'nav',
485
- modelSchema: {
486
- inheritAllFrom: '$container',
487
- isBlock: false
488
- }
489
- },
490
- {
491
- model: 'htmlDl',
492
- view: 'dl',
493
- modelSchema: {
494
- allowWhere: '$container',
495
- allowChildren: ['htmlDt', 'htmlDd', 'htmlDiv'],
496
- isBlock: false
497
- }
498
- },
499
- {
500
- model: 'htmlDt',
501
- view: 'dt',
502
- modelSchema: {
503
- allowChildren: '$block',
504
- allowIn: 'htmlDiv',
505
- isBlock: false
506
- }
507
- },
508
- {
509
- model: 'htmlDd',
510
- view: 'dd',
511
- modelSchema: {
512
- allowChildren: '$block',
513
- allowIn: 'htmlDiv',
514
- isBlock: false
515
- }
516
- },
517
- {
518
- model: 'htmlCenter',
519
- view: 'center',
520
- modelSchema: {
521
- inheritAllFrom: '$container',
522
- isBlock: false
523
- }
524
- },
525
- {
526
- model: 'htmlHr',
527
- view: 'hr',
528
- isEmpty: true,
529
- modelSchema: {
530
- inheritAllFrom: '$blockObject'
531
- }
532
- }
533
- ],
534
- inline: [
535
- // Existing features (attribute set on an existing model element).
536
- {
537
- model: 'htmlLiAttributes',
538
- view: 'li',
539
- appliesToBlock: true,
540
- coupledAttribute: 'listItemId'
541
- },
542
- {
543
- model: 'htmlOlAttributes',
544
- view: 'ol',
545
- appliesToBlock: true,
546
- coupledAttribute: 'listItemId'
547
- },
548
- {
549
- model: 'htmlUlAttributes',
550
- view: 'ul',
551
- appliesToBlock: true,
552
- coupledAttribute: 'listItemId'
553
- },
554
- {
555
- model: 'htmlFigureAttributes',
556
- view: 'figure',
557
- appliesToBlock: 'table'
558
- },
559
- {
560
- model: 'htmlTheadAttributes',
561
- view: 'thead',
562
- appliesToBlock: 'table'
563
- },
564
- {
565
- model: 'htmlTbodyAttributes',
566
- view: 'tbody',
567
- appliesToBlock: 'table'
568
- },
569
- {
570
- model: 'htmlFigureAttributes',
571
- view: 'figure',
572
- appliesToBlock: 'imageBlock'
573
- },
574
- // Compatibility features.
575
- {
576
- model: 'htmlAcronym',
577
- view: 'acronym',
578
- attributeProperties: {
579
- copyOnEnter: true,
580
- isFormatting: true
581
- }
582
- },
583
- {
584
- model: 'htmlTt',
585
- view: 'tt',
586
- attributeProperties: {
587
- copyOnEnter: true,
588
- isFormatting: true
589
- }
590
- },
591
- {
592
- model: 'htmlFont',
593
- view: 'font',
594
- attributeProperties: {
595
- copyOnEnter: true,
596
- isFormatting: true
597
- }
598
- },
599
- {
600
- model: 'htmlTime',
601
- view: 'time',
602
- attributeProperties: {
603
- copyOnEnter: true,
604
- isFormatting: true
605
- }
606
- },
607
- {
608
- model: 'htmlVar',
609
- view: 'var',
610
- attributeProperties: {
611
- copyOnEnter: true,
612
- isFormatting: true
613
- }
614
- },
615
- {
616
- model: 'htmlBig',
617
- view: 'big',
618
- attributeProperties: {
619
- copyOnEnter: true,
620
- isFormatting: true
621
- }
622
- },
623
- {
624
- model: 'htmlSmall',
625
- view: 'small',
626
- attributeProperties: {
627
- copyOnEnter: true,
628
- isFormatting: true
629
- }
630
- },
631
- {
632
- model: 'htmlSamp',
633
- view: 'samp',
634
- attributeProperties: {
635
- copyOnEnter: true,
636
- isFormatting: true
637
- }
638
- },
639
- {
640
- model: 'htmlQ',
641
- view: 'q',
642
- attributeProperties: {
643
- copyOnEnter: true,
644
- isFormatting: true
645
- }
646
- },
647
- {
648
- model: 'htmlOutput',
649
- view: 'output',
650
- attributeProperties: {
651
- copyOnEnter: true,
652
- isFormatting: true
653
- }
654
- },
655
- {
656
- model: 'htmlKbd',
657
- view: 'kbd',
658
- attributeProperties: {
659
- copyOnEnter: true,
660
- isFormatting: true
661
- }
662
- },
663
- {
664
- model: 'htmlBdi',
665
- view: 'bdi',
666
- attributeProperties: {
667
- copyOnEnter: true,
668
- isFormatting: true
669
- }
670
- },
671
- {
672
- model: 'htmlBdo',
673
- view: 'bdo',
674
- attributeProperties: {
675
- copyOnEnter: true,
676
- isFormatting: true
677
- }
678
- },
679
- {
680
- model: 'htmlAbbr',
681
- view: 'abbr',
682
- attributeProperties: {
683
- copyOnEnter: true,
684
- isFormatting: true
685
- }
686
- },
687
- {
688
- model: 'htmlA',
689
- view: 'a',
690
- priority: 5,
691
- coupledAttribute: 'linkHref',
692
- attributeProperties: {
693
- isFormatting: true
694
- }
695
- },
696
- {
697
- model: 'htmlStrong',
698
- view: 'strong',
699
- coupledAttribute: 'bold',
700
- attributeProperties: {
701
- copyOnEnter: true,
702
- isFormatting: true
703
- }
704
- },
705
- {
706
- model: 'htmlB',
707
- view: 'b',
708
- coupledAttribute: 'bold',
709
- attributeProperties: {
710
- copyOnEnter: true,
711
- isFormatting: true
712
- }
713
- },
714
- {
715
- model: 'htmlI',
716
- view: 'i',
717
- coupledAttribute: 'italic',
718
- attributeProperties: {
719
- copyOnEnter: true,
720
- isFormatting: true
721
- }
722
- },
723
- {
724
- model: 'htmlEm',
725
- view: 'em',
726
- coupledAttribute: 'italic',
727
- attributeProperties: {
728
- copyOnEnter: true,
729
- isFormatting: true
730
- }
731
- },
732
- {
733
- model: 'htmlS',
734
- view: 's',
735
- coupledAttribute: 'strikethrough',
736
- attributeProperties: {
737
- copyOnEnter: true,
738
- isFormatting: true
739
- }
740
- },
741
- // TODO According to HTML-spec can behave as div-like element, although CKE4 only handles it as an inline element.
742
- {
743
- model: 'htmlDel',
744
- view: 'del',
745
- coupledAttribute: 'strikethrough',
746
- attributeProperties: {
747
- copyOnEnter: true,
748
- isFormatting: true
749
- }
750
- },
751
- // TODO According to HTML-spec can behave as div-like element, although CKE4 only handles it as an inline element.
752
- {
753
- model: 'htmlIns',
754
- view: 'ins',
755
- attributeProperties: {
756
- copyOnEnter: true,
757
- isFormatting: true
758
- }
759
- },
760
- {
761
- model: 'htmlU',
762
- view: 'u',
763
- coupledAttribute: 'underline',
764
- attributeProperties: {
765
- copyOnEnter: true,
766
- isFormatting: true
767
- }
768
- },
769
- {
770
- model: 'htmlSub',
771
- view: 'sub',
772
- coupledAttribute: 'subscript',
773
- attributeProperties: {
774
- copyOnEnter: true,
775
- isFormatting: true
776
- }
777
- },
778
- {
779
- model: 'htmlSup',
780
- view: 'sup',
781
- coupledAttribute: 'superscript',
782
- attributeProperties: {
783
- copyOnEnter: true,
784
- isFormatting: true
785
- }
786
- },
787
- {
788
- model: 'htmlCode',
789
- view: 'code',
790
- coupledAttribute: 'code',
791
- attributeProperties: {
792
- copyOnEnter: true,
793
- isFormatting: true
794
- }
795
- },
796
- {
797
- model: 'htmlMark',
798
- view: 'mark',
799
- attributeProperties: {
800
- copyOnEnter: true,
801
- isFormatting: true
802
- }
803
- },
804
- {
805
- model: 'htmlSpan',
806
- view: 'span',
807
- attributeProperties: {
808
- copyOnEnter: true,
809
- isFormatting: true
810
- }
811
- },
812
- {
813
- model: 'htmlCite',
814
- view: 'cite',
815
- attributeProperties: {
816
- copyOnEnter: true,
817
- isFormatting: true
818
- }
819
- },
820
- {
821
- model: 'htmlLabel',
822
- view: 'label',
823
- attributeProperties: {
824
- copyOnEnter: true,
825
- isFormatting: true
826
- }
827
- },
828
- {
829
- model: 'htmlDfn',
830
- view: 'dfn',
831
- attributeProperties: {
832
- copyOnEnter: true,
833
- isFormatting: true
834
- }
835
- },
836
- // Objects.
837
- {
838
- model: 'htmlObject',
839
- view: 'object',
840
- isObject: true,
841
- modelSchema: {
842
- inheritAllFrom: '$inlineObject'
843
- }
844
- },
845
- {
846
- model: 'htmlIframe',
847
- view: 'iframe',
848
- isObject: true,
849
- modelSchema: {
850
- inheritAllFrom: '$inlineObject'
851
- }
852
- },
853
- {
854
- model: 'htmlInput',
855
- view: 'input',
856
- isObject: true,
857
- modelSchema: {
858
- inheritAllFrom: '$inlineObject'
859
- }
860
- },
861
- {
862
- model: 'htmlButton',
863
- view: 'button',
864
- isObject: true,
865
- modelSchema: {
866
- inheritAllFrom: '$inlineObject'
867
- }
868
- },
869
- {
870
- model: 'htmlTextarea',
871
- view: 'textarea',
872
- isObject: true,
873
- modelSchema: {
874
- inheritAllFrom: '$inlineObject'
875
- }
876
- },
877
- {
878
- model: 'htmlSelect',
879
- view: 'select',
880
- isObject: true,
881
- modelSchema: {
882
- inheritAllFrom: '$inlineObject'
883
- }
884
- },
885
- {
886
- model: 'htmlVideo',
887
- view: 'video',
888
- isObject: true,
889
- modelSchema: {
890
- inheritAllFrom: '$inlineObject'
891
- }
892
- },
893
- {
894
- model: 'htmlEmbed',
895
- view: 'embed',
896
- isObject: true,
897
- modelSchema: {
898
- inheritAllFrom: '$inlineObject'
899
- }
900
- },
901
- {
902
- model: 'htmlOembed',
903
- view: 'oembed',
904
- isObject: true,
905
- modelSchema: {
906
- inheritAllFrom: '$inlineObject'
907
- }
908
- },
909
- {
910
- model: 'htmlAudio',
911
- view: 'audio',
912
- isObject: true,
913
- modelSchema: {
914
- inheritAllFrom: '$inlineObject'
915
- }
916
- },
917
- {
918
- model: 'htmlImg',
919
- view: 'img',
920
- isObject: true,
921
- modelSchema: {
922
- inheritAllFrom: '$inlineObject'
923
- }
924
- },
925
- {
926
- model: 'htmlCanvas',
927
- view: 'canvas',
928
- isObject: true,
929
- modelSchema: {
930
- inheritAllFrom: '$inlineObject'
931
- }
932
- },
933
- // TODO it could be probably represented as non-object element, although it has graphical representation,
934
- // so probably makes more sense to keep it as an object.
935
- {
936
- model: 'htmlMeter',
937
- view: 'meter',
938
- isObject: true,
939
- modelSchema: {
940
- inheritAllFrom: '$inlineObject'
941
- }
942
- },
943
- // TODO it could be probably represented as non-object element, although it has graphical representation,
944
- // so probably makes more sense to keep it as an object.
945
- {
946
- model: 'htmlProgress',
947
- view: 'progress',
948
- isObject: true,
949
- modelSchema: {
950
- inheritAllFrom: '$inlineObject'
951
- }
952
- },
953
- {
954
- model: 'htmlScript',
955
- view: 'script',
956
- modelSchema: {
957
- allowWhere: ['$text', '$block'],
958
- isInline: true
959
- }
960
- },
961
- {
962
- model: 'htmlStyle',
963
- view: 'style',
964
- modelSchema: {
965
- allowWhere: ['$text', '$block'],
966
- isInline: true
967
- }
968
- },
969
- {
970
- model: 'htmlCustomElement',
971
- view: '$customElement',
972
- modelSchema: {
973
- allowWhere: ['$text', '$block'],
974
- allowAttributesOf: '$inlineObject',
975
- isInline: true
976
- }
977
- }
978
- ]
979
- };