Skip to content

Commit

Permalink
settings/base: add ckeditor link decorator to allow opening links in …
Browse files Browse the repository at this point in the history
…new tab
  • Loading branch information
goapunk committed Mar 13, 2024
1 parent eca9aac commit 915a0a8
Showing 1 changed file with 30 additions and 3 deletions.
33 changes: 30 additions & 3 deletions meinberlin/config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 915a0a8

Please sign in to comment.