# Feature OP-9982 - New Tabs in CKEditor

Project: OpenProject
Status: new
URL: https://community.openproject.org/work_packages/OP-9982

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Target versions | Wish List |
| Sprint |  |
| Backlog bucket |  |
| Votes |  |
| List |  |
| Roadmap |  |
| Relevance |  |

## OPEN POINTS / FEEDBACK

_No work packages_

## Features and Chunks

_No work packages_

## Bugs and other work packages

_No work packages_

## Technical Details

| Attribute | Value |
| --- | --- |
| Module |  |
| Feature Flag |  |
| Requires doc change | No |
| Enterprise plan |  |

## Details

| Attribute | Value |
| --- | --- |
| Pull preview |  |
| Mockups |  |
| Accessibility | No |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Feature Lead |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Estimates and progress

| Attribute | Value |
| --- | --- |
| PD (min) |  |
| PD (max) |  |
| Work |  |
| Labor costs |  |

## Description

**As** a user  
**I want to** add links in my descriptions  
**without** them being opened on top of my current open project window.

I think its a very common use case to open the links in a new tab. It's especially critical for OpenProject, as one tends to click around through mentions of other work packages in comments quite a lot. Thinking about it a bit, I think it's actually not an easy task to anticipate if a link (including a link to an OP-Resource) should open a new tab or not. E.g. in work packages or comments that's most likely what you would expect to happen. Inside a wiki clicking on a linked article you would expect this to open in your current tab.

For Links outside of OpenProject I can't think of a single case where you want the link to overwrite your current tab. But since it is the default behaviour for a very long time, some of OP-Customers might expect that to happen exactly the way it always was?

So there are many ways to address this feature. I'd suggest to leave the at least the custom OpenProject macros etc. as is for now and just work on the "external" or manual links. The best out of both worlds I think would be to introduce a configuration in the admin panel for all three possibilities (always in new tab, configureable on a per link base, always in current tab -- currently the case).

How this can be implemented with CKEditor: <https://ckeditor.com/docs/ckeditor5/latest/api/module_link_link-LinkConfig.html#member-decorators>  
Where the config is located in OpenProject: <https://github.com/opf/openproject/blob/8431743fb3c0e7ffc6fb1ff7d5ffd6e4054a6638/frontend/src/app/shared/components/editor/components/ckeditor/ckeditor-setup.service.ts#L52>
