# Feature OP-19259 - Expand work package mentions (##, ###) macros inside CKEditor

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-19259

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Target versions | 17.5.0 |
| 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 | Modules and project features / Text editor / CKEditor5, Modules and project features / Text editor |
| Feature Flag |  |
| Requires doc change | Yes |
| Enterprise plan |  |

## Details

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

## People

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

## Estimates and progress

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

## Description

**As** a user of OpenProject  
**I want to** see work package macros (\#\#ID, \#\#\#ID) expanded to the quickinfo macro (Status, Type, Subject)  
**so that** I understand what work packages are being linked while editing a page

**Acceptance criteria**

  - When editing anything driven by CKEditor (work package, wiki, meeting, ...),

  - and I type `##ID` or `###ID` and hit enter

  - I see a work package quickinfo line inside the editor (if the work package is visible to me)

  - Macros with `#ID` are unchanged

**Before**

<img class="image_resized op-uc-image op-uc-image_inline" style="width:540px;" src="/api/v3/attachments/920826/content">

**After**

<img class="image_resized op-uc-image op-uc-image_inline" style="width:541px;" src="/api/v3/attachments/920827/content">

<br>

<br>

**Technical notes**

  - Instead of a plain CKEditor mention tag, we render work package mentions with \#\# and \#\#\# as a widget, that renders a work package quickinfo macro inside

**Permissions and visibility considerations**

  - Linking work packages happens through the API, so it respects visibility constraints for the current user
