Add a default protocol to protocol-less links
authorAlexander Ebert <ebert@woltlab.com>
Fri, 30 Jun 2023 11:45:24 +0000 (13:45 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 30 Jun 2023 11:45:24 +0000 (13:45 +0200)
See https://www.woltlab.com/community/thread/300389-vorschau-verlinkung-bei-links-in-texten-falsch-verlinkt/

ts/WoltLabSuite/Core/Component/Ckeditor/Configuration.ts
wcfsetup/install/files/js/WoltLabSuite/Core/Component/Ckeditor/Configuration.js

index b93f14371bfed19ee34140f66eed5c8c492888f0..d67b671e40a8882ae5b94649806e6b2863eb880a 100644 (file)
@@ -334,6 +334,9 @@ class ConfigurationBuilder {
         ],
       },
       language,
+      link: {
+        defaultProtocol: "https://",
+      },
       removePlugins: this.#removePlugins,
       fontFamily: {
         options: [
index 22891c3f0c41d4c537f7a9c4fc304415d05b3c2e..a030739f4ae6f8c41b2ca28cfb4d05eae2cf0a61 100644 (file)
@@ -290,6 +290,9 @@ define(["require", "exports", "../../Language"], function (require, exports, Lan
                     ],
                 },
                 language,
+                link: {
+                    defaultProtocol: "https://",
+                },
                 removePlugins: this.#removePlugins,
                 fontFamily: {
                     options: [