Skip to content

Commit

Permalink
Add SMS to link protocol whitelist
Browse files Browse the repository at this point in the history
  • Loading branch information
Anish George authored and jhchen committed Dec 21, 2022
1 parent 795dd1e commit 6159f64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion formats/link.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class Link extends Inline {
static blotName = 'link';
static tagName = 'A';
static SANITIZED_URL = 'about:blank';
static PROTOCOL_WHITELIST = ['http', 'https', 'mailto', 'tel'];
static PROTOCOL_WHITELIST = ['http', 'https', 'mailto', 'tel', 'sms'];

static create(value) {
const node = super.create(value) as Element;
Expand Down

0 comments on commit 6159f64

Please sign in to comment.