Skip to content

Commit

Permalink
Merge pull request #492 from yalesites-org/YALB-1169-anchor-links
Browse files Browse the repository at this point in the history
YALB-1169 Links: Enable WYSYWIG tools for anchor links
  • Loading branch information
nJim authored Jan 4, 2024
2 parents 117f1f1 + 4abc78c commit e3401ce
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 6 deletions.
12 changes: 12 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.4.0",
"type": "drupal-library",
"dist": {
"url": "https://registry.npmjs.org/@northernco/ckeditor5-anchor-drupal/-/ckeditor5-anchor-drupal-0.4.0.tgz",
"type": "tar"
}
}
}
},
"require": {
Expand Down
14 changes: 14 additions & 0 deletions web/profiles/custom/yalesites_profile/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,25 @@
"drupal": {
"type": "composer",
"url": "https://packages.drupal.org/8"
},
"ckeditor5-anchor-drupal": {
"type": "package",
"package": {
"name": "northernco/ckeditor5-anchor-drupal",
"version": "0.4.0",
"type": "drupal-library",
"dist": {
"url": "https://registry.npmjs.org/@northernco/ckeditor5-anchor-drupal/-/ckeditor5-anchor-drupal-0.4.0.tgz",
"type": "tar"
}
}
}
},
"require": {
"drupal/address": "1.12",
"drupal/admin_toolbar": "3.4.1",
"drupal/allowed_formats": "3.0",
"drupal/anchor_link": "3.0.0-alpha1",
"drupal/auto_entitylabel": "3.0",
"drupal/autosave_form": "1.4",
"drupal/better_exposed_filters": "6.0.3",
Expand Down Expand Up @@ -92,6 +105,7 @@
"drupal/wingsuit_companion": "2.1",
"jjj/chosen": "2.2.1",
"laminas/laminas-escaper": "2.12",
"northernco/ckeditor5-anchor-drupal": "0.4.0",
"yalesites-org/atomic": "1.21.1",
"yalesites-org/yale_cas": "1.0.4"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ settings:
- '|'
- link
- '|'
- anchor
- '|'
- bulletedList
- numberedList
- outdent
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ settings:
- italic
- '|'
- link
- anchor
plugins:
linkit_extension:
linkit_enabled: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ filters:
status: true
weight: -10
settings:
allowed_html: '<br> <p class="text-align-left text-align-center text-align-right text-align-justify"> <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"> <h6 id class="text-align-left text-align-center text-align-right text-align-justify"> <cite> <dl> <dt> <dd> <span> <blockquote cite> <ul type> <ol type start> <a hreflang title href data-entity-type data-entity-uuid data-entity-substitution> <strong> <em> <li> <table> <tr> <td rowspan colspan> <th rowspan colspan> <thead> <tbody> <tfoot> <caption>'
allowed_html: '<a id target rel class="ck-anchor" hreflang title href data-entity-type data-entity-uuid data-entity-substitution> <br> <p class="text-align-left text-align-center text-align-right text-align-justify"> <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"> <h6 id class="text-align-left text-align-center text-align-right text-align-justify"> <cite> <dl> <dt> <dd> <span> <blockquote cite> <ul type> <ol type start> <strong> <em> <li> <table> <tr> <td rowspan colspan> <th rowspan colspan> <thead> <tbody> <tfoot> <caption>'
filter_html_help: false
filter_html_nofollow: false
filter_align:
Expand Down Expand Up @@ -80,14 +80,14 @@ filters:
smartypants_enabled: '1'
smartypants_hyphens: '2'
space_hyphens: '0'
wrap_ampersand: '0'
widont_enabled: '0'
space_to_nbsp: '1'
hyphenate_shy: '0'
wrap_abbr: '0'
space_to_nbsp: '1'
wrap_caps: '0'
wrap_initial_quotes: '1'
wrap_ampersand: '0'
wrap_abbr: '0'
wrap_numbers: '0'
wrap_initial_quotes: '1'
ligatures: 'a:0:{}'
arrows: 'a:0:{}'
fractions: 'a:0:{}'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ filters:
status: true
weight: -10
settings:
allowed_html: '<br> <p> <strong> <em> <a href data-entity-type data-entity-uuid data-entity-substitution>'
allowed_html: '<a id target rel class="ck-anchor" href data-entity-type data-entity-uuid data-entity-substitution> <br> <p> <strong> <em>'
filter_html_help: true
filter_html_nofollow: false
filter_autop:
Expand Down

0 comments on commit e3401ce

Please sign in to comment.