From e84fc608c2d7f740cfc346b5b11adb2f0fe2d2e5 Mon Sep 17 00:00:00 2001
From: nod_ <nod_@598310.no-reply.drupal.org>
Date: Tue, 19 Mar 2024 00:11:32 +0100
Subject: [PATCH] Issue #2893568 by Wim Leers, lee.cocklin, AaronBauman, anon,
 ainarend: Linking in CKEditor 5: URLs with top-level domain but without
 protocol should get a protocol added automatically

---
 core/modules/ckeditor5/ckeditor5.ckeditor5.yml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/core/modules/ckeditor5/ckeditor5.ckeditor5.yml b/core/modules/ckeditor5/ckeditor5.ckeditor5.yml
index 855fc9ce1f67..99ecb479fdbb 100644
--- a/core/modules/ckeditor5/ckeditor5.ckeditor5.yml
+++ b/core/modules/ckeditor5/ckeditor5.ckeditor5.yml
@@ -340,6 +340,10 @@ ckeditor5_link:
   ckeditor5:
     plugins:
       - link.Link
+    config:
+      link:
+        # @see https://ckeditor.com/docs/ckeditor5/latest/features/link.html#adding-default-link-protocol-to-external-links
+        defaultProtocol: 'https://'
   drupal:
     label: Link
     library: core/ckeditor5.link
-- 
GitLab