Skip to content

Commit

Permalink
Ckedito5 patch for table cell resize
Browse files Browse the repository at this point in the history
  • Loading branch information
Sahil Sharma committed Oct 31, 2024
1 parent 86d5c24 commit 9ad1422
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 3 deletions.
6 changes: 4 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,8 @@
"Add filter by input field to Menu UI - https://www.drupal.org/project/drupal/issues/3170906#comment-15553421": "https://www.drupal.org/files/issues/2024-04-16/3170906-menu-filter-12.patch",
"Issue with HTML ` ` not being correctly filtered out from URLs - https://www.drupal.org/project/drupal/issues/3445910#comment-15586313": "https://www.drupal.org/files/issues/2024-08-06/drupal_core_non-breaking_space_issue_3445910_27_0.patch",
"Menu content is not accessible via jsonapi - https://www.drupal.org/node/2915792": "https://www.drupal.org/files/issues/menu_link_content-view-permissions-2915792.patch",
"Revisions on relations are not loaded correctly resulting in wrong data in includes - https://www.drupal.org/project/drupal/issues/3088239#comment-15519702": "https://www.drupal.org/files/issues/2024-03-25/3088239-50.patch"
"Revisions on relations are not loaded correctly resulting in wrong data in includes - https://www.drupal.org/project/drupal/issues/3088239#comment-15519702": "https://www.drupal.org/files/issues/2024-03-25/3088239-50.patch",
"Add tableTableColumnResize for formats with arbitrary HTML supported - https://www.drupal.org/project/drupal/issues/3353010#comment-15144906": "./patches/ckeditor5/ckeditor5_table_properties_and_column_size.patch"
},
"drupal/video_embed_field": {
"Add support for Ckeditor 5 - https://www.drupal.org/project/video_embed_field/issues/3311063": "./patches/video_embed_field/video_embed_field_6.patch"
Expand Down Expand Up @@ -464,7 +465,8 @@
},
"config": {
"allow-plugins": {
"composer/installers": true
"composer/installers": true,
"oomphinc/composer-installers-extender": true
}
}
}
2 changes: 1 addition & 1 deletion config/install/filter.format.rich_text.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ filters:
status: true
weight: -49
settings:
allowed_html: '<embedded-content data-plugin-config data-plugin-id> <a title class id target rel data-entity-type data-entity-uuid data-entity-substitution hreflang href> <div class> <p class="wysiwyg-callout quotation__quote text-align-left text-align-center text-align-right text-align-justify"> <br> <h2 id class="text-align-left text-align-center text-align-right text-align-justify"> <h3 id class="text-align-left text-align-center text-align-right text-align-justify"> <h4 id class="text-align-left text-align-center text-align-right text-align-justify"> <h5 id class="text-align-left text-align-center text-align-right text-align-justify"> <ol class type reversed start> <ul class type> <cite> <dl> <dt> <dd> <footer> <span class> <img src alt data-entity-type data-entity-uuid data-align data-caption> <iframe frameborder height scrolling src width title> <drupal-entity data-caption data-align data-entity-uuid data-entity-embed-display data-entity-embed-display-settings data-show-last-updated title alt data-embed-button="node tide_media" data-entity-type="node media"> <blockquote cite class> <th align class rowspan colspan> <td align class rowspan colspan> <strong> <em> <code class="language-*"> <pre class="text-align-left text-align-center text-align-right text-align-justify"> <s> <sub> <sup> <li> <hr> <table> <tr> <thead> <tbody> <tfoot> <caption>'
allowed_html: '<embedded-content data-plugin-config data-plugin-id> <a title class id target rel data-entity-type data-entity-uuid data-entity-substitution hreflang href> <div class> <p class="wysiwyg-callout quotation__quote text-align-left text-align-center text-align-right text-align-justify"> <br> <h2 id class="text-align-left text-align-center text-align-right text-align-justify"> <h3 id class="text-align-left text-align-center text-align-right text-align-justify"> <h4 id class="text-align-left text-align-center text-align-right text-align-justify"> <h5 id class="text-align-left text-align-center text-align-right text-align-justify"> <ol class type reversed start> <ul class type> <cite> <dl> <dt> <dd> <footer> <span class> <img src alt data-entity-type data-entity-uuid data-align data-caption> <iframe frameborder height scrolling src width title> <drupal-entity data-caption data-align data-entity-uuid data-entity-embed-display data-entity-embed-display-settings data-show-last-updated title alt data-embed-button="node tide_media" data-entity-type="node media"> <blockquote cite class> <th align class rowspan colspan> <td align class rowspan colspan> <strong> <em> <code class="language-*"> <pre class="text-align-left text-align-center text-align-right text-align-justify"> <s> <sub> <sup> <li> <hr> <table> <tr> <thead> <tbody> <tfoot> <caption> <colgroup> <col> <col style>'
filter_html_help: true
filter_html_nofollow: false
filter_autop:
Expand Down
36 changes: 36 additions & 0 deletions patches/ckeditor5/ckeditor5_table_properties_and_column_size.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
diff --git a/core/modules/ckeditor5/ckeditor5.ckeditor5.yml b/core/modules/ckeditor5/ckeditor5.ckeditor5.yml
index 2a2c3fd165..3c76e71482 100644
--- a/core/modules/ckeditor5/ckeditor5.ckeditor5.yml
+++ b/core/modules/ckeditor5/ckeditor5.ckeditor5.yml
@@ -526,8 +526,6 @@ ckeditor5_table_properties:
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>

@@ -549,8 +547,20 @@ ckeditor5_table_cell_properties:
elements:
- <td style>
- <td rowspan colspan style>
- - <th style>
- - <th rowspan colspan style>
+
+ckeditor5_tableColumnResize:
+ ckeditor5:
+ plugins:
+ - table.TableColumnResize
+ drupal:
+ label: Table Column Resize
+ conditions:
+ plugins:
+ - ckeditor5_table
+ elements:
+ - <colgroup>
+ - <col>
+ - <col style>

ckeditor5_image:
ckeditor5:

0 comments on commit 9ad1422

Please sign in to comment.