From e5b22743d1e84504ff7f624bd85330ee88549c90 Mon Sep 17 00:00:00 2001 From: Hector Lopez Date: Wed, 22 Nov 2023 16:54:57 -0700 Subject: [PATCH 1/6] feat(YALB-1169): enable the anchor_links module and add the anchor_links library --- composer.json | 13 +++++++++++++ web/profiles/custom/yalesites_profile/composer.json | 1 + 2 files changed, 14 insertions(+) diff --git a/composer.json b/composer.json index 635bbee003..814ef99738 100644 --- a/composer.json +++ b/composer.json @@ -10,6 +10,18 @@ "drupal": { "type": "composer", "url": "https://packages.drupal.org/8" + }, + "ckeditor5-anchor-drupal": { + "type": "package", + "package": { + "name": "northernco/ckeditor5-anchor-drupal", + "version": "0.3.0", + "type": "drupal-library", + "dist": { + "url": "https://registry.npmjs.org/@northernco/ckeditor5-anchor-drupal/-/ckeditor5-anchor-drupal-0.3.0.tgz", + "type": "tar" + } + } } }, "require": { @@ -20,6 +32,7 @@ "drupal/core-recommended": "^10", "drush/drush": "^11 || ^12", "oomphinc/composer-installers-extender": "^2.0", + "northernco/ckeditor5-anchor-drupal": "^0.3.0", "pantheon-systems/drupal-integrations": "^10", "yalesites-org/yalesites_profile": "*" }, diff --git a/web/profiles/custom/yalesites_profile/composer.json b/web/profiles/custom/yalesites_profile/composer.json index 66416813e8..499de307ec 100644 --- a/web/profiles/custom/yalesites_profile/composer.json +++ b/web/profiles/custom/yalesites_profile/composer.json @@ -11,6 +11,7 @@ "drupal/address": "1.12", "drupal/admin_toolbar": "3.4.1", "drupal/allowed_formats": "3.0", + "drupal/anchor_link": "3.0.x-dev@dev", "drupal/auto_entitylabel": "3.0", "drupal/autosave_form": "1.4", "drupal/better_exposed_filters": "6.0.3", From c3a6cb98d5d115643ede8899d7dc53387b6b78f7 Mon Sep 17 00:00:00 2001 From: Hector Lopez Date: Mon, 27 Nov 2023 09:08:41 -0700 Subject: [PATCH 2/6] feat(YALB-1169): enable anchor links in the basic and restricted text formats --- .../yalesites_profile/config/sync/core.extension.yml | 1 + .../config/sync/editor.editor.basic_html.yml | 2 ++ .../config/sync/editor.editor.restricted_html.yml | 1 + .../config/sync/filter.format.basic_html.yml | 10 +++++----- .../config/sync/filter.format.restricted_html.yml | 2 +- 5 files changed, 10 insertions(+), 6 deletions(-) diff --git a/web/profiles/custom/yalesites_profile/config/sync/core.extension.yml b/web/profiles/custom/yalesites_profile/config/sync/core.extension.yml index 530f1042f0..dd1116e372 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/core.extension.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/core.extension.yml @@ -6,6 +6,7 @@ module: admin_toolbar: 0 admin_toolbar_tools: 0 allowed_formats: 0 + anchor_link: 0 auto_entitylabel: 0 better_exposed_filters: 0 block: 0 diff --git a/web/profiles/custom/yalesites_profile/config/sync/editor.editor.basic_html.yml b/web/profiles/custom/yalesites_profile/config/sync/editor.editor.basic_html.yml index 5716f12005..60efd65bcd 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/editor.editor.basic_html.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/editor.editor.basic_html.yml @@ -18,6 +18,8 @@ settings: - '|' - link - '|' + - anchor + - '|' - bulletedList - numberedList - outdent diff --git a/web/profiles/custom/yalesites_profile/config/sync/editor.editor.restricted_html.yml b/web/profiles/custom/yalesites_profile/config/sync/editor.editor.restricted_html.yml index 1626e54fcf..a33d588afa 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/editor.editor.restricted_html.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/editor.editor.restricted_html.yml @@ -15,6 +15,7 @@ settings: - italic - '|' - link + - anchor plugins: linkit_extension: linkit_enabled: true diff --git a/web/profiles/custom/yalesites_profile/config/sync/filter.format.basic_html.yml b/web/profiles/custom/yalesites_profile/config/sync/filter.format.basic_html.yml index 33b90851c4..bd02ed8b5e 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/filter.format.basic_html.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/filter.format.basic_html.yml @@ -17,7 +17,7 @@ filters: status: true weight: -10 settings: - allowed_html: '