From 08c4fd46e4f7fda3bd22431503eb2b49e32d3597 Mon Sep 17 00:00:00 2001 From: Vilde Stabell Date: Wed, 27 Nov 2024 10:04:20 +0100 Subject: [PATCH] JI-6711 Allow more protocols in links --- scripts/h5peditor-html.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/h5peditor-html.js b/scripts/h5peditor-html.js index 4ec69365..0a66a0c8 100644 --- a/scripts/h5peditor-html.js +++ b/scripts/h5peditor-html.js @@ -139,6 +139,8 @@ ns.Html.prototype.getCKEditorConfig = function () { addTargetToExternalLinks: true, // Automatically add protocol if not present defaultProtocol: 'http://', + // Allow protocols like phone numbers. Be mindful of security when changing this list + allowedProtocols: [ 'https?', 'tel', 'sms', 'sftp', 'smb', 'slack' ], } }