- πΊπΈUnited States BenStallings
I took a cursory look at this, and I'm not sure how it would work... the core table plugin for CKeditor 4 has a modal dialog for table properties, and this module adds to that dialog. But the core table plugin for CKeditor 5 has a "balloon toolbar" instead of a modal dialog. The documentation for adding features to this toolbar appears to be here: https://ckeditor.com/docs/ckeditor5/latest/api/module_table_tableconfig-... but I'm not sure how to use it.
- πͺπ¨Ecuador jwilson3
My findings:
1.- The main features the Bootstrap Tables CKE4 plugin adds is several checkboxes that facilitate adding classes to the
<table>
tag.2.- Sadly there is no way (that I can see in docs) to add classes to the table using table : tableconfig : TablePropertiesOptions
3.- There are some notes about advanced properties dialog here, which still needs work:
β¨ Support CKEditor 5's table properties and cell properties plugins in Full HTML Fixed
4.- However!! most of what this module provides can be achieved with the out-of-the-box features from Drupal 10, namely the Table widget features combined with the "Styles" dropdown configured on your Text formats using options like this:
table.table|Bootstrap table table.table-bordered|Bordered table table.table-hover|Hover table table.table-sm|Small table table.table-striped|Striped table table.table-dark|Dark table thead.thead-dark|Dark table heading
5.- I was worried that clicking
thead.thead-dark|Dark header
style option with the table selected would not work, but to my surprise, it worked fine.6.- The only thing I cannot see how to reproduce is the Bootstrap
wrapper around the table tag.
- πͺπ¨Ecuador jwilson3
6.- The only thing I cannot see how to reproduce is the Bootstrap
<div class="table-responsive">
wrapper around the table tag.https://git.drupalcode.org/search?search=table-responsive&nav_source=nav...
- πͺπ¨Ecuador jwilson3
For point 6 in comment #6 above, there is a Drupal module called Responsive Table Filter β that can be configured to add the bootstrap responsive table wrapper class on your text formats. Note: the docs page for the module are fairly outdated and discuss views integrations and other options that are no longer available in the latest version of the module.
It "Just Works":
- Status changed to Needs work
over 1 year ago 5:36pm 14 September 2023 - πͺπ¨Ecuador jwilson3
Re-classifying this as a task (from feature request) so that the maintainer could update their project page to:
- Add instructions on the documentation page to point to this issue that includes steps for how to configure the same module features for CKEditor 5.
- Mark the project as obsolete for Drupal 10 with CKEditor 5.
- Status changed to Active
over 1 year ago 5:36pm 14 September 2023 - π―π΄Jordan abu-zakham
I found this module to add Bootstrap Classes to any tables https://www.drupal.org/project/table_bs_filter β