Skip to content

Commit

Permalink
feat (YALB-1057): allow smartquotes in wysiwyg input
Browse files Browse the repository at this point in the history
  • Loading branch information
nJim committed Aug 18, 2023
1 parent 5c6755c commit 5af9755
Show file tree
Hide file tree
Showing 5 changed files with 69 additions and 1 deletion.
1 change: 1 addition & 0 deletions web/profiles/custom/yalesites_profile/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
"drupal/simple_sitemap": "^4.1",
"drupal/smart_date": "^3.5",
"drupal/twig_tweak": "^3.1",
"drupal/typogrify": "^1.2",
"drupal/upgrade_status": "^3.18",
"drupal/webform": "^6.2@beta",
"drupal/wingsuit_companion": "^2.0@RC",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ module:
token: 0
toolbar: 0
twig_tweak: 0
typogrify: 0
update: 0
upgrade_status: 0
user: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ dependencies:
- editor
- improve_line_breaks_filter
- linkit
- typogrify
name: 'Basic HTML'
format: basic_html
weight: 0
Expand Down Expand Up @@ -70,3 +71,24 @@ filters:
weight: 0
settings:
title: true
typogrify:
id: typogrify
provider: typogrify
status: true
weight: 10
settings:
smartypants_enabled: '1'
smartypants_hyphens: '2'
space_hyphens: '0'
widont_enabled: '0'
hyphenate_shy: '0'
space_to_nbsp: '1'
wrap_caps: '0'
wrap_ampersand: '0'
wrap_abbr: '0'
wrap_numbers: '0'
wrap_initial_quotes: '1'
ligatures: 'a:0:{}'
arrows: 'a:0:{}'
fractions: 'a:0:{}'
quotes: 'a:2:{s:2:",,";s:2:",,";s:2:"''''";s:2:"''''";}'
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ status: true
dependencies:
module:
- improve_line_breaks_filter
- typogrify
name: 'Heading HTML'
format: heading_html
weight: 0
Expand All @@ -14,7 +15,7 @@ filters:
status: true
weight: -10
settings:
allowed_html: '<em> <strong><p>'
allowed_html: '<em> <strong> <p>'
filter_html_help: false
filter_html_nofollow: false
improve_line_breaks_filter:
Expand All @@ -24,3 +25,24 @@ filters:
weight: 50
settings:
remove_empty_paragraphs: '0'
typogrify:
id: typogrify
provider: typogrify
status: true
weight: 10
settings:
smartypants_enabled: '1'
smartypants_hyphens: '2'
space_hyphens: '0'
widont_enabled: '0'
hyphenate_shy: '0'
space_to_nbsp: '1'
wrap_caps: '0'
wrap_ampersand: '0'
wrap_abbr: '0'
wrap_numbers: '0'
wrap_initial_quotes: '1'
ligatures: 'a:0:{}'
arrows: 'a:0:{}'
fractions: 'a:0:{}'
quotes: 'a:2:{s:2:",,";s:2:",,";s:2:"''''";s:2:"''''";}'
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ status: true
dependencies:
module:
- improve_line_breaks_filter
- typogrify
name: 'Restricted HTML'
format: restricted_html
weight: 1
Expand Down Expand Up @@ -43,3 +44,24 @@ filters:
weight: 50
settings:
remove_empty_paragraphs: '1'
typogrify:
id: typogrify
provider: typogrify
status: true
weight: 10
settings:
smartypants_enabled: '1'
smartypants_hyphens: '2'
space_hyphens: '0'
widont_enabled: '0'
hyphenate_shy: '0'
space_to_nbsp: '1'
wrap_caps: '0'
wrap_ampersand: '0'
wrap_abbr: '0'
wrap_numbers: '0'
wrap_initial_quotes: '1'
ligatures: 'a:0:{}'
arrows: 'a:0:{}'
fractions: 'a:0:{}'
quotes: 'a:2:{s:2:",,";s:2:",,";s:2:"''''";s:2:"''''";}'

0 comments on commit 5af9755

Please sign in to comment.