Closed kevwalsh closed 1 year ago
Removed CKeditor5 as a blocker since there may be more dependencies to that implementation. The solution for this issue does not need to solely rely on CKeditor
4/26 Process definition -- Focus for Sprint 57 --
--- Will spill into Sprint 58:---
Decisions
Editor Advanced link This is definitely a viable option for helping with phone numbers Works with D10 and CKeditor 5
Closing this in favor of more recent tickets and direction
User story
As an editor, i want to make phone numbers added to a rich text field clickable and accessible, per the content style guide
"As an editor I can put in a phone number in a rich text area and 'it just works'"
Context
Editors struggle with...
Constraints
VA.gov content guidelines for phone numbers:
Use hyphens between numbers, and don’t use parentheses to set off the area code: 212-123-1234
Hyperlink all phone numbers, including TTY numbers
- could generate programmaticallyUse the following source code for 508 accessibility
(aria label) - could probably automatically generateFor phone numbers with an extension, use ext. at the end: 202-123-1234, ext. 9.
We don’t use vanity phone numbers in body copy. We use and hyperlink only the numeric phone number in body copy. (Exception: right rail promo content)
- add validation / don't allow alpha characters. Input masking would take care of this.Problem statement
How might we make it easier for editors to add accessible phone numbers?
Etc.
Worth doing an analysis of how others have handled this with CKeditor
Dave: the FE has the ability (as I understand it) to put a 'filter' on text to essentially detect phone numbers and render them correctly during the build. However I think this may fail when it comes to including extensions. See Slack thread for more context
Need to consider SMS and other "actionable numbers" -- how can we move away from reliance on the FE to render numbers this way?
Related epic: https://github.com/department-of-veterans-affairs/va.gov-cms/issues/7963
ACs