a tool for shared writing and social publishing
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

don't prefix tel links with https://

+5 -1
+5 -1
components/Toolbar/InlineLinkToolbar.tsx
··· 108 108 if (!editor || start === null || !end || !focusedBlock) return; 109 109 let tr = editor.tr; 110 110 let href = linkValue; 111 - if (!href.startsWith("http") && !href.startsWith("mailto")) 111 + if ( 112 + !href.startsWith("http") && 113 + !href.startsWith("mailto") && 114 + !href.startsWith("tel:") 115 + ) 112 116 href = `https://${href}`; 113 117 tr.addMark(start, end, schema.marks.link.create({ href })); 114 118 tr.setSelection(TextSelection.create(tr.doc, tr.selection.to));