🐛 (textBubble) Fix link parsing in text editor

This commit is contained in:
Baptiste Arnaud
2022-12-02 17:42:18 +01:00
parent bdf7c0d5c0
commit b4dc64028c
3 changed files with 12 additions and 8 deletions

View File

@@ -23,10 +23,11 @@ export const platePlugins = createPlugins(
renderAfterEditable: PlateFloatingLink,
options: {
isUrl: (url: string) =>
url.startsWith('http') ||
url.startsWith('mailto') ||
url.startsWith('tel') ||
url.startsWith('sms'),
url.startsWith('http:') ||
url.startsWith('https:') ||
url.startsWith('mailto:') ||
url.startsWith('tel:') ||
url.startsWith('sms:'),
},
}),
],