- Issue created by @kate.k
Hi, using a hook (in a .module file):
function your_module_ckeditor5_plugin_info_alter(array &$plugin_definitions) { if (isset($plugin_definitions['ckeditor5_table'])) { $tableDefinition = $plugin_definitions['ckeditor5_table']->toArray(); $bgColors = [ '#0a2a3d', ]; $borderColors = ['#eff0f2']; $tableDefinition['ckeditor5']['config']['table']['tableProperties'] = [ 'backgroundColors' => $bgColors, 'borderColors' => $borderColors, ]; $tableDefinition['ckeditor5']['config']['table']['tableCellProperties'] = [ 'backgroundColors' => $bgColors, 'borderColors' => $borderColors, ]; $plugin_definitions['ckeditor5_table'] = new CKEditor5PluginDefinition($tableDefinition); } }
- Status changed to Closed: works as designed
5 months ago 7:09am 16 February 2025 - 🇳🇿New Zealand quietone
@davisa, thanks for responding.
Since this has been answered, I am closing the issue.