ckeditor5 icon indicating copy to clipboard operation
ckeditor5 copied to clipboard

Table styles – alignment without text wrapping?

Open Reinmar opened this issue 5 years ago • 3 comments

📝 Provide a description of the new feature

So, in https://github.com/ckeditor/ckeditor5/issues/3287 we're introducing table styling which operates on floats. This allows aligning tables but does not allow controlling whether the table should be wrapped with text or not.

We should perhaps add an option to disable text wrapping. If it's enabled, it would still make the feature use floats. If not, it would use margins.

cc @jodator


If you'd like to see this feature implemented, add a 👍 reaction to this post.

Reinmar avatar Jan 31 '20 10:01 Reinmar

So, in #3287 we're introducing table styling which operates on floats.

We use margin-right and margin-left to control table alignment. But adding a float shouldn't be a big deal.

jodator avatar Jan 31 '20 11:01 jodator

This problem has also been mentioned in https://github.com/ckeditor/ckeditor5/issues/9982.

jswiderski avatar Apr 21 '22 12:04 jswiderski

Just a quick update regarding this request.

Starting from CKEditor 5 v47.3.0, new experimental table block-alignment options are available. These options introduce left and right table alignment without text wrapping, effectively covering the main needs described in this issue.

To try them out:

  • Enable:
    config.experimentalFlags.useExtendedTableBlockAlignment
  • Load the experimental UI plugins:
    TablePropertiesUIExperimental and TableCellPropertiesUIExperimental

Details: https://ckeditor.com/docs/ckeditor5/latest/updating/guides/update-to-47.html#new-experimental-options

These improvements resolve the table-style limitations mentioned here (and other issues). The new behavior is planned to become the default in version 48.0.0 (~April).

Witoso avatar Dec 08 '25 14:12 Witoso