Verified Commit 93aa6832 authored by Dave Long's avatar Dave Long
Browse files

Issue #3324225 by BramDriesen, Wim Leers, Emil Stoianov, smustgrave, pmagunia,...

Issue #3324225 by BramDriesen, Wim Leers, Emil Stoianov, smustgrave, pmagunia, lauriii, Graber: Support CKEditor 5's table properties and cell properties plugins in Full HTML
parent 4516d625
Loading
Loading
Loading
Loading
+39 −0
Original line number Diff line number Diff line
@@ -500,6 +500,45 @@ ckeditor5_table:
      - <tfoot>
      - <caption>

ckeditor5_table_properties:
  ckeditor5:
    plugins:
      - table.TableProperties
    config:
      table:
        contentToolbar: [tableProperties]
  drupal:
    label: Table properties
    library: ckeditor5/internal.drupal.ckeditor5.table
    conditions:
      plugins:
        - ckeditor5_table
        # When arbitrary HTML is already allowed, it's harmless to enable CKEditor 5's UI for table properties.
        - ckeditor5_arbitraryHtmlSupport
    elements:
      - <table style>

ckeditor5_table_cell_properties:
  ckeditor5:
    plugins:
      - table.TableCellProperties
    config:
      table:
        contentToolbar: [tableCellProperties]
  drupal:
    label: Table cell properties
    library: ckeditor5/internal.drupal.ckeditor5.table
    conditions:
      plugins:
        - ckeditor5_table
        # 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>

ckeditor5_image:
  ckeditor5:
    plugins:
+7 −0
Original line number Diff line number Diff line
@@ -100,6 +100,13 @@ internal.drupal.ckeditor5.filter.admin:
    - core/drupal.ajax
    - core/drupalSettings

internal.drupal.ckeditor5.table:
  css:
    theme:
      css/table.css: { }
  dependencies:
    - core/ckeditor5.table

internal.admin:
  js:
    js/ckeditor5.admin.js: { }
+11 −0
Original line number Diff line number Diff line
/**
 * 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;
}