@ckeditor/ckeditor5-table 0.0.0-nightly-next-20251209.0 → 0.0.0-nightly-20251210.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 (108) hide show
  1. package/build/table.js +2 -2
  2. package/build/translations/af.js +1 -1
  3. package/build/translations/ar.js +1 -1
  4. package/build/translations/ast.js +1 -1
  5. package/build/translations/az.js +1 -1
  6. package/build/translations/be.js +1 -1
  7. package/build/translations/bg.js +1 -1
  8. package/build/translations/bn.js +1 -1
  9. package/build/translations/bs.js +1 -1
  10. package/build/translations/ca.js +1 -1
  11. package/build/translations/cs.js +1 -1
  12. package/build/translations/da.js +1 -1
  13. package/build/translations/de-ch.js +1 -1
  14. package/build/translations/de.js +1 -1
  15. package/build/translations/el.js +1 -1
  16. package/build/translations/en-au.js +1 -1
  17. package/build/translations/en-gb.js +1 -1
  18. package/build/translations/eo.js +1 -1
  19. package/build/translations/es-co.js +1 -1
  20. package/build/translations/es.js +1 -1
  21. package/build/translations/et.js +1 -1
  22. package/build/translations/eu.js +1 -1
  23. package/build/translations/fa.js +1 -1
  24. package/build/translations/fi.js +1 -1
  25. package/build/translations/fr.js +1 -1
  26. package/build/translations/gl.js +1 -1
  27. package/build/translations/gu.js +1 -1
  28. package/build/translations/he.js +1 -1
  29. package/build/translations/hi.js +1 -1
  30. package/build/translations/hr.js +1 -1
  31. package/build/translations/hu.js +1 -1
  32. package/build/translations/hy.js +1 -1
  33. package/build/translations/id.js +1 -1
  34. package/build/translations/it.js +1 -1
  35. package/build/translations/ja.js +1 -1
  36. package/build/translations/jv.js +1 -1
  37. package/build/translations/kk.js +1 -1
  38. package/build/translations/km.js +1 -1
  39. package/build/translations/kn.js +1 -1
  40. package/build/translations/ko.js +1 -1
  41. package/build/translations/ku.js +1 -1
  42. package/build/translations/lt.js +1 -1
  43. package/build/translations/lv.js +1 -1
  44. package/build/translations/ms.js +1 -1
  45. package/build/translations/nb.js +1 -1
  46. package/build/translations/ne.js +1 -1
  47. package/build/translations/nl.js +1 -1
  48. package/build/translations/no.js +1 -1
  49. package/build/translations/oc.js +1 -1
  50. package/build/translations/pl.js +1 -1
  51. package/build/translations/pt-br.js +1 -1
  52. package/build/translations/pt.js +1 -1
  53. package/build/translations/ro.js +1 -1
  54. package/build/translations/ru.js +1 -1
  55. package/build/translations/si.js +1 -1
  56. package/build/translations/sk.js +1 -1
  57. package/build/translations/sl.js +1 -1
  58. package/build/translations/sq.js +1 -1
  59. package/build/translations/sr-latn.js +1 -1
  60. package/build/translations/sr.js +1 -1
  61. package/build/translations/sv.js +1 -1
  62. package/build/translations/th.js +1 -1
  63. package/build/translations/ti.js +1 -1
  64. package/build/translations/tk.js +1 -1
  65. package/build/translations/tr.js +1 -1
  66. package/build/translations/tt.js +1 -1
  67. package/build/translations/ug.js +1 -1
  68. package/build/translations/uk.js +1 -1
  69. package/build/translations/ur.js +1 -1
  70. package/build/translations/uz.js +1 -1
  71. package/build/translations/vi.js +1 -1
  72. package/build/translations/zh-cn.js +1 -1
  73. package/build/translations/zh.js +1 -1
  74. package/ckeditor5-metadata.json +1 -10
  75. package/dist/index-content.css +30 -30
  76. package/dist/index-editor.css +194 -120
  77. package/dist/index.css +265 -167
  78. package/dist/index.css.map +1 -1
  79. package/dist/index.js +2219 -148
  80. package/dist/index.js.map +1 -1
  81. package/lang/contexts.json +4 -0
  82. package/package.json +9 -9
  83. package/src/augmentation.d.ts +7 -0
  84. package/src/converters/downcast.js +12 -3
  85. package/src/index.d.ts +4 -0
  86. package/src/index.js +5 -0
  87. package/src/tablecellproperties/tablecellpropertiesuiexperimental.d.ts +128 -0
  88. package/src/tablecellproperties/tablecellpropertiesuiexperimental.js +386 -0
  89. package/src/tablecellproperties/ui/tablecellpropertiesview.d.ts +0 -8
  90. package/src/tablecellproperties/ui/tablecellpropertiesview.js +10 -30
  91. package/src/tablecellproperties/ui/tablecellpropertiesviewexperimental.d.ts +237 -0
  92. package/src/tablecellproperties/ui/tablecellpropertiesviewexperimental.js +633 -0
  93. package/src/tableconfig.d.ts +4 -4
  94. package/src/tableproperties/tablepropertiesediting.js +147 -14
  95. package/src/tableproperties/tablepropertiesuiexperimental.d.ts +136 -0
  96. package/src/tableproperties/tablepropertiesuiexperimental.js +375 -0
  97. package/src/tableproperties/ui/tablepropertiesview.d.ts +0 -8
  98. package/src/tableproperties/ui/tablepropertiesview.js +37 -59
  99. package/src/tableproperties/ui/tablepropertiesviewexperimental.d.ts +216 -0
  100. package/src/tableproperties/ui/tablepropertiesviewexperimental.js +544 -0
  101. package/src/utils/ui/table-propertiesexperimental.d.ts +215 -0
  102. package/src/utils/ui/table-propertiesexperimental.js +391 -0
  103. package/theme/formrow-experimental.css +15 -0
  104. package/theme/formrow.css +0 -2
  105. package/theme/tableform-experimental.css +73 -0
  106. package/theme/tableform.css +5 -1
  107. package/theme/tableproperties-experimental.css +78 -0
  108. package/theme/tableproperties.css +0 -60
package/dist/index.css CHANGED
@@ -150,29 +150,6 @@
150
150
  width: 100%;
151
151
  }
152
152
 
153
- /*
154
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
155
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
156
- */
157
-
158
- .ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row {
159
- flex-wrap: wrap;
160
- }
161
-
162
- .ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar:first-of-type {
163
- /* 4 buttons out of 7 (h-alignment + v-alignment) = 0.57 */
164
- flex-grow: 0.57;
165
- }
166
-
167
- .ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar:last-of-type {
168
- /* 3 buttons out of 7 (h-alignment + v-alignment) = 0.43 */
169
- flex-grow: 0.43;
170
- }
171
-
172
- .ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar .ck-button {
173
- flex-grow: 1;
174
- }
175
-
176
153
  /*
177
154
  * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
178
155
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
@@ -247,90 +224,146 @@
247
224
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
248
225
  */
249
226
 
227
+ .ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row {
228
+ flex-wrap: wrap;
229
+ flex-basis: 0;
230
+ align-content: baseline;
231
+ }
232
+
233
+ .ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row .ck.ck-toolbar .ck-toolbar__items {
234
+ flex-wrap: nowrap;
235
+ }
236
+
250
237
  /*
251
238
  * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
252
239
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
253
240
  */
241
+
254
242
  /*
255
243
  * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
256
244
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
257
245
  */
258
246
 
259
247
  :root {
260
- --ck-form-default-width: 340px;
248
+ --ck-content-color-table-caption-background: hsl(0, 0%, 97%);
249
+ --ck-content-color-table-caption-text: hsl(0, 0%, 20%);
250
+ --ck-color-table-caption-highlighted-background: hsl(52deg 100% 50%);
261
251
  }
262
252
 
263
- .ck.ck-form {
264
- padding: 0 0 var(--ck-spacing-large);
265
- }
253
+ /* Content styles */
254
+ .ck-content .table > figcaption,
255
+ .ck-content figure.table > table > caption {
256
+ display: table-caption;
257
+ caption-side: top;
258
+ word-break: normal;
259
+ overflow-wrap: anywhere;
260
+ text-align: center;
261
+ color: var(--ck-content-color-table-caption-text);
262
+ background-color: var(--ck-content-color-table-caption-background);
263
+ padding: .6em;
264
+ font-size: .75em;
265
+ outline-offset: -1px;
266
266
 
267
- .ck.ck-form.ck-form_default-width {
268
- width: var(--ck-form-default-width);
267
+ /* Improve placeholder rendering in high-constrast mode (https://github.com/ckeditor/ckeditor5/issues/14907). */
268
+ }
269
+ @media (forced-colors: active) {
270
+ .ck-content .table > figcaption, .ck-content figure.table > table > caption {
271
+ background-color: unset;
272
+ color: unset;
273
+ }
269
274
  }
270
275
 
271
- .ck.ck-form:focus {
272
- outline: none;
276
+ /* Editing styles */
277
+ @media (forced-colors: none) {
278
+ .ck.ck-editor__editable .table > figcaption.table__caption_highlighted, .ck.ck-editor__editable figure.table > table > caption.table__caption_highlighted {
279
+ animation: ck-table-caption-highlight .6s ease-out;
280
+ }
273
281
  }
282
+ .ck.ck-editor__editable .table > figcaption.ck-placeholder::before, .ck.ck-editor__editable figure.table > table > caption.ck-placeholder::before {
283
+ padding-left: inherit;
284
+ padding-right: inherit;
274
285
 
275
- .ck.ck-form .ck.ck-input-text,
276
- .ck.ck-form .ck.ck-input-number {
277
- min-width: 100%;
278
- width: 0;
286
+ /*
287
+ * Make sure the table caption placeholder doesn't overflow the placeholder area.
288
+ * See https://github.com/ckeditor/ckeditor5/issues/9162.
289
+ */
290
+ white-space: nowrap;
291
+ overflow: hidden;
292
+ text-overflow: ellipsis;
279
293
  }
280
294
 
281
- .ck.ck-form .ck.ck-dropdown {
282
- min-width: 100%;
295
+ @keyframes ck-table-caption-highlight {
296
+ 0% {
297
+ background-color: var(--ck-color-table-caption-highlighted-background);
283
298
  }
284
299
 
285
- .ck.ck-form .ck.ck-dropdown .ck-dropdown__button:not(:focus) {
286
- border: 1px solid var(--ck-color-base-border);
287
- }
288
-
289
- .ck.ck-form .ck.ck-dropdown .ck-dropdown__button .ck-button__label {
290
- width: 100%;
291
- }
292
-
293
- /* Default `ck-responsive-form` customization when it lies next to `ck-form` class */
300
+ 100% {
301
+ background-color: var(--ck-content-color-table-caption-background);
302
+ }
303
+ }
294
304
 
295
- @media screen and (max-width: 600px) {
305
+ /*
306
+ * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
307
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
308
+ */
296
309
 
297
- .ck.ck-form.ck-responsive-form .ck.ck-form__row.ck-form__row_with-submit {
298
- flex-direction: column;
299
- align-items: stretch;
300
- padding: 0;
301
- }
302
- }
310
+ :root {
311
+ --ck-color-table-column-resizer-hover: var(--ck-color-base-active);
312
+ --ck-table-column-resizer-width: 7px;
303
313
 
304
- @media screen and (max-width: 600px) {
314
+ /* The offset used for absolute positioning of the resizer element, so that it is placed exactly above the cell border.
315
+ The value is: minus half the width of the resizer decreased additionaly by the half the width of the border (0.5px). */
316
+ --ck-table-column-resizer-position-offset: calc(var(--ck-table-column-resizer-width) * -0.5 - 0.5px);
317
+ }
305
318
 
306
- .ck.ck-form.ck-responsive-form .ck.ck-form__row.ck-form__row_with-submit > .ck {
307
- margin: var(--ck-spacing-large) var(--ck-spacing-large) 0;
308
- }
309
- }
319
+ .ck-content .table .ck-table-resized {
320
+ table-layout: fixed;
321
+ }
310
322
 
311
- @media screen and (max-width: 600px) {
323
+ .ck-content .table td,
324
+ .ck-content .table th {
325
+ /* To prevent text overflowing beyond its cell when columns are resized by resize handler
326
+ (https://github.com/ckeditor/ckeditor5/pull/14379#issuecomment-1589460978). */
327
+ overflow-wrap: break-word;
328
+ }
312
329
 
313
- .ck.ck-form.ck-responsive-form .ck.ck-form__row.ck-form__row_with-submit .ck-button_with-text {
314
- justify-content: center;
315
- }
316
- }
330
+ .ck.ck-editor__editable .table td,
331
+ .ck.ck-editor__editable .table th {
332
+ /* The resizer element is placed inside each cell, so it must be positioned relatively to the cell. */
333
+ position: relative;
334
+ }
317
335
 
318
- @media screen and (max-width: 600px) {
336
+ .ck.ck-editor__editable .table .ck-table-column-resizer {
337
+ position: absolute;
338
+ top: 0;
339
+ bottom: 0;
340
+ right: var(--ck-table-column-resizer-position-offset);
341
+ width: var(--ck-table-column-resizer-width);
342
+ cursor: col-resize;
343
+ user-select: none;
344
+ z-index: var(--ck-z-default);
345
+ }
319
346
 
320
- .ck.ck-form.ck-responsive-form .ck.ck-form__row.ck-form__row_large-bottom-padding {
321
- padding-bottom: var(--ck-spacing-large);
322
- }
323
- }
347
+ .ck.ck-editor__editable.ck-column-resize_disabled .table .ck-table-column-resizer {
348
+ display: none;
349
+ }
324
350
 
325
- [dir="ltr"] .ck.ck-form.ck-responsive-form > :not(:first-child) {
326
- margin-left: 0;
327
- }
351
+ /* The resizer elements, which are extended to an extremely high height, break the drag & drop feature in Chrome. To make it work again,
352
+ all resizers must be hidden while the table is dragged. */
353
+ .ck.ck-editor__editable .table[draggable] .ck-table-column-resizer {
354
+ display: none;
355
+ }
328
356
 
329
- [dir="rtl"] .ck.ck-form.ck-responsive-form > :not(:last-child) {
330
- margin-left: 0;
331
- }
357
+ .ck.ck-editor__editable .table .ck-table-column-resizer:hover,
358
+ .ck.ck-editor__editable .table .ck-table-column-resizer__active {
359
+ background-color: var(--ck-color-table-column-resizer-hover);
360
+ opacity: 0.25;
361
+ }
332
362
 
333
- /* End of `ck-responsive-form` customization */
363
+ .ck.ck-editor__editable[dir=rtl] .table .ck-table-column-resizer {
364
+ left: var(--ck-table-column-resizer-position-offset);
365
+ right: unset;
366
+ }
334
367
 
335
368
  /*
336
369
  * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
@@ -407,6 +440,14 @@
407
440
  transform: translateX( -50% );
408
441
  }
409
442
 
443
+ .ck.ck-table-form:has( .ck-form__header > .ck-button-back ) .ck-form__row.ck-table-form__action-row > .ck.ck-button {
444
+ flex-grow: initial;
445
+ }
446
+
447
+ .ck.ck-table-form:has( .ck-form__header > .ck-button-back ) .ck-form__row.ck-table-form__action-row > .ck.ck-button .ck-button__label {
448
+ color: currentColor;
449
+ }
450
+
410
451
  /*
411
452
  * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
412
453
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
@@ -479,131 +520,188 @@
479
520
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
480
521
  */
481
522
 
523
+ /*
524
+ * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
525
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
526
+ */
482
527
  /*
483
528
  * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
484
529
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
485
530
  */
486
531
 
487
532
  :root {
488
- --ck-content-color-table-caption-background: hsl(0, 0%, 97%);
489
- --ck-content-color-table-caption-text: hsl(0, 0%, 20%);
490
- --ck-color-table-caption-highlighted-background: hsl(52deg 100% 50%);
533
+ --ck-form-default-width: 340px;
491
534
  }
492
535
 
493
- /* Content styles */
494
- .ck-content .table > figcaption,
495
- .ck-content figure.table > table > caption {
496
- display: table-caption;
497
- caption-side: top;
498
- word-break: normal;
499
- overflow-wrap: anywhere;
500
- text-align: center;
501
- color: var(--ck-content-color-table-caption-text);
502
- background-color: var(--ck-content-color-table-caption-background);
503
- padding: .6em;
504
- font-size: .75em;
505
- outline-offset: -1px;
506
-
507
- /* Improve placeholder rendering in high-constrast mode (https://github.com/ckeditor/ckeditor5/issues/14907). */
536
+ .ck.ck-form {
537
+ padding: 0 0 var(--ck-spacing-large);
508
538
  }
509
- @media (forced-colors: active) {
510
- .ck-content .table > figcaption, .ck-content figure.table > table > caption {
511
- background-color: unset;
512
- color: unset;
513
- }
539
+
540
+ .ck.ck-form.ck-form_default-width {
541
+ width: var(--ck-form-default-width);
514
542
  }
515
543
 
516
- /* Editing styles */
517
- @media (forced-colors: none) {
518
- .ck.ck-editor__editable .table > figcaption.table__caption_highlighted, .ck.ck-editor__editable figure.table > table > caption.table__caption_highlighted {
519
- animation: ck-table-caption-highlight .6s ease-out;
520
- }
544
+ .ck.ck-form:focus {
545
+ outline: none;
521
546
  }
522
- .ck.ck-editor__editable .table > figcaption.ck-placeholder::before, .ck.ck-editor__editable figure.table > table > caption.ck-placeholder::before {
523
- padding-left: inherit;
524
- padding-right: inherit;
525
547
 
526
- /*
527
- * Make sure the table caption placeholder doesn't overflow the placeholder area.
528
- * See https://github.com/ckeditor/ckeditor5/issues/9162.
529
- */
530
- white-space: nowrap;
531
- overflow: hidden;
532
- text-overflow: ellipsis;
548
+ .ck.ck-form .ck.ck-input-text,
549
+ .ck.ck-form .ck.ck-input-number {
550
+ min-width: 100%;
551
+ width: 0;
533
552
  }
534
553
 
535
- @keyframes ck-table-caption-highlight {
536
- 0% {
537
- background-color: var(--ck-color-table-caption-highlighted-background);
554
+ .ck.ck-form .ck.ck-dropdown {
555
+ min-width: 100%;
538
556
  }
539
557
 
540
- 100% {
541
- background-color: var(--ck-content-color-table-caption-background);
558
+ .ck.ck-form .ck.ck-dropdown .ck-dropdown__button:not(:focus) {
559
+ border: 1px solid var(--ck-color-base-border);
560
+ }
561
+
562
+ .ck.ck-form .ck.ck-dropdown .ck-dropdown__button .ck-button__label {
563
+ width: 100%;
564
+ }
565
+
566
+ /* Default `ck-responsive-form` customization when it lies next to `ck-form` class */
567
+
568
+ @media screen and (max-width: 600px) {
569
+
570
+ .ck.ck-form.ck-responsive-form .ck.ck-form__row.ck-form__row_with-submit {
571
+ flex-direction: column;
572
+ align-items: stretch;
573
+ padding: 0;
574
+ }
542
575
  }
543
- }
576
+
577
+ @media screen and (max-width: 600px) {
578
+
579
+ .ck.ck-form.ck-responsive-form .ck.ck-form__row.ck-form__row_with-submit > .ck {
580
+ margin: var(--ck-spacing-large) var(--ck-spacing-large) 0;
581
+ }
582
+ }
583
+
584
+ @media screen and (max-width: 600px) {
585
+
586
+ .ck.ck-form.ck-responsive-form .ck.ck-form__row.ck-form__row_with-submit .ck-button_with-text {
587
+ justify-content: center;
588
+ }
589
+ }
590
+
591
+ @media screen and (max-width: 600px) {
592
+
593
+ .ck.ck-form.ck-responsive-form .ck.ck-form__row.ck-form__row_large-bottom-padding {
594
+ padding-bottom: var(--ck-spacing-large);
595
+ }
596
+ }
597
+
598
+ [dir="ltr"] .ck.ck-form.ck-responsive-form > :not(:first-child) {
599
+ margin-left: 0;
600
+ }
601
+
602
+ [dir="rtl"] .ck.ck-form.ck-responsive-form > :not(:last-child) {
603
+ margin-left: 0;
604
+ }
605
+
606
+ /* End of `ck-responsive-form` customization */
544
607
 
545
608
  /*
546
609
  * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
547
610
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
548
611
  */
549
612
 
550
- :root {
551
- --ck-color-table-column-resizer-hover: var(--ck-color-base-active);
552
- --ck-table-column-resizer-width: 7px;
613
+ .ck.ck-form__row.ck-table-form__action-row .ck-button-save,
614
+ .ck.ck-form__row.ck-table-form__action-row .ck-button-cancel {
615
+ justify-content: center;
616
+ }
553
617
 
554
- /* The offset used for absolute positioning of the resizer element, so that it is placed exactly above the cell border.
555
- The value is: minus half the width of the resizer decreased additionaly by the half the width of the border (0.5px). */
556
- --ck-table-column-resizer-position-offset: calc(var(--ck-table-column-resizer-width) * -0.5 - 0.5px);
557
- }
618
+ /*
619
+ * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
620
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
621
+ */
558
622
 
559
- .ck-content .table .ck-table-resized {
560
- table-layout: fixed;
561
- }
623
+ .ck.ck-table-form .ck-form__row.ck-table-form__border-row {
624
+ flex-wrap: wrap;
625
+ }
562
626
 
563
- .ck-content .table td,
564
- .ck-content .table th {
565
- /* To prevent text overflowing beyond its cell when columns are resized by resize handler
566
- (https://github.com/ckeditor/ckeditor5/pull/14379#issuecomment-1589460978). */
567
- overflow-wrap: break-word;
568
- }
627
+ .ck.ck-table-form .ck-form__row.ck-table-form__background-row {
628
+ flex-wrap: wrap;
629
+ }
569
630
 
570
- .ck.ck-editor__editable .table td,
571
- .ck.ck-editor__editable .table th {
572
- /* The resizer element is placed inside each cell, so it must be positioned relatively to the cell. */
573
- position: relative;
574
- }
631
+ .ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row {
632
+ flex-wrap: wrap;
633
+ align-items: center;
634
+ }
575
635
 
576
- .ck.ck-editor__editable .table .ck-table-column-resizer {
577
- position: absolute;
578
- top: 0;
579
- bottom: 0;
580
- right: var(--ck-table-column-resizer-position-offset);
581
- width: var(--ck-table-column-resizer-width);
582
- cursor: col-resize;
583
- user-select: none;
584
- z-index: var(--ck-z-default);
585
- }
636
+ .ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-labeled-field-view {
637
+ display: flex;
638
+ flex-direction: column-reverse;
639
+ align-items: center;
640
+ }
586
641
 
587
- .ck.ck-editor__editable.ck-column-resize_disabled .table .ck-table-column-resizer {
588
- display: none;
589
- }
642
+ .ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-labeled-field-view .ck.ck-dropdown {
643
+ flex-grow: 0;
644
+ }
590
645
 
591
- /* The resizer elements, which are extended to an extremely high height, break the drag & drop feature in Chrome. To make it work again,
592
- all resizers must be hidden while the table is dragged. */
593
- .ck.ck-editor__editable .table[draggable] .ck-table-column-resizer {
594
- display: none;
595
- }
646
+ .ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimension-operator {
647
+ flex-grow: 0;
648
+ }
596
649
 
597
- .ck.ck-editor__editable .table .ck-table-column-resizer:hover,
598
- .ck.ck-editor__editable .table .ck-table-column-resizer__active {
599
- background-color: var(--ck-color-table-column-resizer-hover);
600
- opacity: 0.25;
601
- }
650
+ /* Ignore labels that work as fieldset legends */
602
651
 
603
- .ck.ck-editor__editable[dir=rtl] .table .ck-table-column-resizer {
604
- left: var(--ck-table-column-resizer-position-offset);
605
- right: unset;
606
- }
652
+ /* Fallback for table dimension operator */
653
+
654
+ .ck.ck-table-form .ck-form__row > *:not(.ck-label, .ck-table-form__dimension-operator) {
655
+ flex-grow: 1;
656
+ }
657
+
658
+ .ck.ck-table-form .ck.ck-labeled-field-view {
659
+ /* Allow absolute positioning of the status (error) balloons. */
660
+ position: relative;
661
+ }
662
+
663
+ .ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status {
664
+ position: absolute;
665
+ left: 50%;
666
+ bottom: calc( -1 * var(--ck-table-properties-error-arrow-size) );
667
+ transform: translate(-50%,100%);
668
+
669
+ /* Make sure the balloon status stays on top of other form elements. */
670
+ z-index: 1;
671
+
672
+ /* The arrow pointing towards the field. */
673
+ }
674
+
675
+ .ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status::after {
676
+ content: "";
677
+ position: absolute;
678
+ top: calc( -1 * var(--ck-table-properties-error-arrow-size) );
679
+ left: 50%;
680
+ transform: translateX( -50% );
681
+ }
682
+
683
+ /*
684
+ * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
685
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
686
+ */
687
+
688
+ .ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row {
689
+ flex-wrap: wrap;
690
+ }
691
+
692
+ .ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar:first-of-type {
693
+ /* 4 buttons out of 7 (h-alignment + v-alignment) = 0.57 */
694
+ flex-grow: 0.57;
695
+ }
696
+
697
+ .ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar:last-of-type {
698
+ /* 3 buttons out of 7 (h-alignment + v-alignment) = 0.43 */
699
+ flex-grow: 0.43;
700
+ }
701
+
702
+ .ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar .ck-button {
703
+ flex-grow: 1;
704
+ }
607
705
 
608
706
  /*
609
707
  * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.