Table styles – alignment without text wrapping?
📝 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.
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.
This problem has also been mentioned in https://github.com/ckeditor/ckeditor5/issues/9982.
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:
TablePropertiesUIExperimentalandTableCellPropertiesUIExperimental
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).