From f80a17ebc13670f0ed21a1c814f9d9b9f3d310ea Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Fri, 6 Dec 2024 20:59:08 +0200 Subject: [PATCH] feat(editor): update allowedProtocols --- packages/ckeditor5-build-trilium/src/config.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/ckeditor5-build-trilium/src/config.ts b/packages/ckeditor5-build-trilium/src/config.ts index 09dad9f34..b897470ba 100644 --- a/packages/ckeditor5-build-trilium/src/config.ts +++ b/packages/ckeditor5-build-trilium/src/config.ts @@ -238,7 +238,12 @@ export const COMMON_SETTINGS = { }, link: { defaultProtocol: 'https://', - allowedProtocols: ['https?', 'tel', 'sms', 'sftp', 'smb', 'slack', 'file', 'zotero'] + allowedProtocols: [ + 'http', 'https', 'ftp', 'ftps', 'mailto', 'data', 'evernote', 'file', 'facetime', 'gemini', 'git', + 'gopher', 'imap', 'irc', 'irc6', 'jabber', 'jar', 'lastfm', 'ldap', 'ldaps', 'magnet', 'message', + 'mumble', 'nfs', 'onenote', 'pop', 'rmi', 's3', 'sftp', 'skype', 'sms', 'spotify', 'steam', 'svn', 'udp', + 'view-source', 'vlc', 'vnc', 'ws', 'wss', 'xmpp', 'jdbc', 'slack', 'tel', 'smb', 'zotero' + ] }, // This value must be kept in sync with the language defined in webpack.config.js. language: 'en'