Skip to content

Commit

Permalink
Closes #3870 Revert #3219: Add anchor link plugin for CKEditor5 (#3872)
Browse files Browse the repository at this point in the history
  • Loading branch information
bberndt-uaz authored and joeparsons committed Nov 19, 2024
1 parent 86ff90e commit a8bce02
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 24 deletions.
2 changes: 0 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
"citation-style-language/styles": "0.0.561",
"composer/installers": "^2.0",
"cweagans/composer-patches": "^1.7",
"drupal/anchor_link": "3.0.0-beta1",
"drupal/access_unpublished": "1.6.0",
"drupal/antibot": "2.0.4",
"drupal/asset_injector": "2.21.0",
Expand Down Expand Up @@ -127,7 +126,6 @@
"npm-asset/bootstrap-datepicker": "1.10.0",
"npm-asset/easepick--bundle": "1.2.1",
"npm-asset/jquery-ui-touch-punch": "*",
"npm-asset/northernco--ckeditor5-anchor-drupal": "0.5.0",
"npm-asset/slick-carousel": "1.8.0",
"renanbr/bibtex-parser": "2.2.0",
"seboettg/citeproc-php": "2.6.2"
Expand Down
1 change: 0 additions & 1 deletion modules/custom/az_paragraphs/az_paragraphs.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ core_version_requirement: ^9 || ^10
package: 'The University of Arizona'
dependencies:
- paragraphs:paragraphs
- anchor_link:anchor_link
- az_card
- az_core
- az_media
Expand Down
3 changes: 1 addition & 2 deletions modules/custom/az_paragraphs/az_paragraphs.install
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,7 @@ function az_paragraphs_update_1021001() {
}

/**
* Enable anchor_link module for CKEditor5 by default.
* Empty update since we reverted our addition of the anchor_link module.
*/
function az_paragraphs_update_1021201() {
\Drupal::service('module_installer')->install(['anchor_link']);
}
18 changes: 0 additions & 18 deletions modules/custom/az_paragraphs/az_paragraphs.module
Original file line number Diff line number Diff line change
Expand Up @@ -53,21 +53,3 @@ function az_paragraphs_theme_registry_alter(&$theme_registry) {
}
}
}

/**
* Implements hook_library_info_alter().
*
* Alter path of CKE5 anchor link library to match the one installed by
* composer.
* @link https://www.drupal.org/project/anchor_link/issues/3406349#comment-15463373
*/
function az_paragraphs_library_info_alter(&$libraries, $extension) {
if ($extension === 'anchor_link' && isset($libraries['cke5_anchor_link'])) {
$libraries['cke5_anchor_link']['js'] = [
'/libraries/northernco--ckeditor5-anchor-drupal/build/anchor-drupal.js' => [
'preprocess' => FALSE,
'minified' => TRUE,
],
];
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ settings:
- specialCharacters
- '|'
- link
- anchor
- '|'
- bulletedList
- numberedList
Expand Down

0 comments on commit a8bce02

Please sign in to comment.