From d0a79d43c89fe8b7182e21e0b3457c37f5d280d6 Mon Sep 17 00:00:00 2001 From: Sahil Sharma Date: Mon, 25 Nov 2024 14:02:20 +1100 Subject: [PATCH] Ckedito5 patch for table cell resize (#533) * Ckedito5 patch for table cell resize * modules/tide_landing_page/src/Plugin/jsonapi/FieldEnhancer/BasicTextEnhancer.php * Chnages for col style * Ckeditor table resize fix for retaining styles * Changes to revert config * Update hook changes * Removed cosnole log * Updated col style in install and also loop through all tabled in DOM * Removed table inline styles --------- Co-authored-by: Sahil Sharma Co-authored-by: Sahil Sharma Co-authored-by: sharmasahil --- composer.json | 3 +- config/install/filter.format.rich_text.yml | 2 +- .../ckeditor_tablecol_resize/.gitignore | 2 + .../ckeditor_tablecol_resize.ckeditor5.yml | 20 + .../ckeditor_tablecol_resize.info.yml | 7 + .../ckeditor_tablecol_resize.libraries.yml | 5 + .../ckeditor_tablecol_resize/composer.json | 15 + .../js/build/tableColResize.js | 1 + .../tableColResize/src/index.js | 22 + .../src/tablecolresizeediting.js | 104 + .../ckeditor_tablecol_resize/package.json | 21 + .../Filter/FilterResizeTableColumns.php | 121 + .../webpack.config.js | 73 + .../ckeditor_tablecol_resize/yarn.lock | 2643 +++++++++++++++++ modules/tide_ckeditor/tide_ckeditor.install | 31 + .../FieldEnhancer/BasicTextEnhancer.php | 67 + patches/ckeditor_templates/.DS_Store | Bin 0 -> 6148 bytes 17 files changed, 3135 insertions(+), 2 deletions(-) create mode 100644 modules/tide_ckeditor/modules/ckeditor_tablecol_resize/.gitignore create mode 100644 modules/tide_ckeditor/modules/ckeditor_tablecol_resize/ckeditor_tablecol_resize.ckeditor5.yml create mode 100644 modules/tide_ckeditor/modules/ckeditor_tablecol_resize/ckeditor_tablecol_resize.info.yml create mode 100644 modules/tide_ckeditor/modules/ckeditor_tablecol_resize/ckeditor_tablecol_resize.libraries.yml create mode 100644 modules/tide_ckeditor/modules/ckeditor_tablecol_resize/composer.json create mode 100644 modules/tide_ckeditor/modules/ckeditor_tablecol_resize/js/build/tableColResize.js create mode 100644 modules/tide_ckeditor/modules/ckeditor_tablecol_resize/js/ckeditor5_plugins/tableColResize/src/index.js create mode 100644 modules/tide_ckeditor/modules/ckeditor_tablecol_resize/js/ckeditor5_plugins/tableColResize/src/tablecolresizeediting.js create mode 100644 modules/tide_ckeditor/modules/ckeditor_tablecol_resize/package.json create mode 100644 modules/tide_ckeditor/modules/ckeditor_tablecol_resize/src/Plugin/Filter/FilterResizeTableColumns.php create mode 100644 modules/tide_ckeditor/modules/ckeditor_tablecol_resize/webpack.config.js create mode 100644 modules/tide_ckeditor/modules/ckeditor_tablecol_resize/yarn.lock create mode 100644 patches/ckeditor_templates/.DS_Store diff --git a/composer.json b/composer.json index 5976ffb16..6c82c5535 100644 --- a/composer.json +++ b/composer.json @@ -464,7 +464,8 @@ }, "config": { "allow-plugins": { - "composer/installers": true + "composer/installers": true, + "oomphinc/composer-installers-extender": true } } } diff --git a/config/install/filter.format.rich_text.yml b/config/install/filter.format.rich_text.yml index cd834cdfb..479f5a7b9 100644 --- a/config/install/filter.format.rich_text.yml +++ b/config/install/filter.format.rich_text.yml @@ -47,7 +47,7 @@ filters: status: true weight: -49 settings: - allowed_html: '