2
0

🚸 (textBubble) Allow mailto and tel links

Closes #137
This commit is contained in:
Baptiste Arnaud
2022-10-22 09:05:58 +02:00
parent 36a2fe3a70
commit baa63a7810
6 changed files with 180 additions and 162 deletions

View File

@ -21,6 +21,13 @@ export const platePlugins = createPlugins(
createUnderlinePlugin(),
createLinkPlugin({
renderAfterEditable: PlateFloatingLink,
options: {
isUrl: (url: string) =>
url.startsWith('http') ||
url.startsWith('mailto') ||
url.startsWith('tel') ||
url.startsWith('sms'),
},
}),
],
{