From 915a0a8fc9576b4e25be578dd32467a92f4dd4aa Mon Sep 17 00:00:00 2001 From: Julian Dehm Date: Wed, 13 Mar 2024 13:23:11 +0100 Subject: [PATCH] settings/base: add ckeditor link decorator to allow opening links in new tab --- meinberlin/config/settings/base.py | 33 +++++++++++++++++++++++++++--- 1 file changed, 30 insertions(+), 3 deletions(-) diff --git a/meinberlin/config/settings/base.py b/meinberlin/config/settings/base.py index 41111e56b1..510964a773 100644 --- a/meinberlin/config/settings/base.py +++ b/meinberlin/config/settings/base.py @@ -553,7 +553,16 @@ "reversed": "true", } }, - "link": {"defaultProtocol": "https://"}, + "link": { + "defaultProtocol": "https://", + "decorators": { + "openInNewTab": { + "mode": "manual", + "label": "Open in a new tab", + "attributes": {"target": "_blank"}, + } + }, + }, }, "image-editor": { "language": "de", @@ -590,7 +599,16 @@ "reversed": "true", } }, - "link": {"defaultProtocol": "https://"}, + "link": { + "defaultProtocol": "https://", + "decorators": { + "openInNewTab": { + "mode": "manual", + "label": "Open in a new tab", + "attributes": {"target": "_blank"}, + } + }, + }, }, "collapsible-image-editor": { "language": "de", @@ -627,7 +645,16 @@ "reversed": "true", } }, - "link": {"defaultProtocol": "https://"}, + "link": { + "defaultProtocol": "https://", + "decorators": { + "openInNewTab": { + "mode": "manual", + "label": "Open in a new tab", + "attributes": {"target": "_blank"}, + } + }, + }, "mediaEmbed": { "removeProviders": [ "dailymotion",