diff --git a/ckeditor_responsive_table.ckeditor5.yml b/ckeditor_responsive_table.ckeditor5.yml index 73739c48c45f972b1cb6ca35d16fd62cf8699ac7..740c528b51ab1e2dda981529469228fe127f2bb9 100644 --- a/ckeditor_responsive_table.ckeditor5.yml +++ b/ckeditor_responsive_table.ckeditor5.yml @@ -53,3 +53,41 @@ ckeditor_responsive_table_custom: - <tfoot> - <caption> - <caption class> +ckeditor_responsive_table_properties: + ckeditor5: + plugins: + - table.TableProperties + config: + table: + contentToolbar: [tableProperties] + drupal: + label: Table properties + library: ckeditor_responsive_table/responsive_table + conditions: + plugins: + - ckeditor_responsive_table_custom + # When arbitrary HTML is already allowed, it's harmless to enable CKEditor 5's UI for table properties. + - ckeditor5_arbitraryHtmlSupport + elements: + - <table style> + +ckeditor_responsive_table_cell_properties: + ckeditor5: + plugins: + - table.TableCellProperties + config: + table: + contentToolbar: [tableCellProperties] + drupal: + label: Table cell properties + library: ckeditor_responsive_table/responsive_table + conditions: + plugins: + - ckeditor_responsive_table_custom + # When arbitrary HTML is already allowed, it's harmless to enable CKEditor 5's UI for table cell properties. + - ckeditor5_arbitraryHtmlSupport + elements: + - <td style> + - <td rowspan colspan style> + - <th style> + - <th rowspan colspan style> diff --git a/css/responsiveTableStyles.css b/css/responsiveTableStyles.css index 8ab666a93806fafe13cf7436c76f72c327aed7de..9f9a36ec60255e12d950242574b336ced554d997 100644 --- a/css/responsiveTableStyles.css +++ b/css/responsiveTableStyles.css @@ -2,3 +2,15 @@ figure.table figcaption.hide-caption, figure.table.hide-caption figcaption{ display: none; } + +/** + * Allow users to specify the background color in all themes. + * + * (Users can set this using CKEditor 5's optional TableProperties and + * TableCellProperties plugins.) + */ +.ck tr, +.ck th, +.ck td { + background-color: transparent; +}