Skip to content

Commit

Permalink
feat(shs-5693): attached files for tables in wysiwyg
Browse files Browse the repository at this point in the history
  • Loading branch information
Mari Nez committed Nov 30, 2024
1 parent 51d05f8 commit 9b51bc6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docroot/themes/humsci/humsci_basic/humsci_basic.libraries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ secondarymenu:
js:
dist/js/secondarytoggler.js: {}

tablescope:
js:
dist/js/tablescope.js: {}

tablewrap:
js:
dist/js/tablewrap.js: {}
1 change: 1 addition & 0 deletions docroot/themes/humsci/humsci_basic/humsci_basic.theme
Original file line number Diff line number Diff line change
Expand Up @@ -258,5 +258,6 @@ function humsci_basic_preprocess_paragraph(&$variables) {
function humsci_basic_preprocess_field(&$variables) {
if ($variables['field_name'] == 'field_hs_text_area') {
$variables['#attached']['library'][] = 'humsci_basic/tablewrap';
$variables['#attached']['library'][] = 'humsci_basic/tablescope';
}
}

0 comments on commit 9b51bc6

Please sign in to comment.