From 6410ecf83d0a5c93a81e91e7a96f80d76dd3f026 Mon Sep 17 00:00:00 2001
From: Elmar Ludwig <elmar.ludwig@uni-osnabrueck.de>
Date: Wed, 22 Mar 2023 12:32:08 +0000
Subject: [PATCH] remove addTargetToExternalLinks decorator, fixes #2058

Closes #2058

Merge request studip/studip!1612
---
 resources/assets/javascripts/chunks/wysiwyg.js | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/resources/assets/javascripts/chunks/wysiwyg.js b/resources/assets/javascripts/chunks/wysiwyg.js
index 4d53733e071..cae716e71e8 100644
--- a/resources/assets/javascripts/chunks/wysiwyg.js
+++ b/resources/assets/javascripts/chunks/wysiwyg.js
@@ -244,12 +244,6 @@ ClassicEditor.defaultConfig = {
     },
     link: {
         defaultProtocol: 'https://',
-        decorators: {
-            addTargetToExternalLinks: {
-                mode: 'automatic',
-                callback: url => /^(https?:)?\/\//.test( url )
-            }
-        }
     },
     language: 'de',
     htmlSupport: {
-- 
GitLab