# Bug BNE-83 - Copy/paste of a single work package link does not work

Project: Stream BlockNote extensions
Status: closed
URL: https://community.openproject.org/work_packages/BNE-83

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | High |
| Module | Modules and project features / Documents, Modules and project features / Text editor / BlockNoteJS / OpenProject Extensions |
| Target versions | 17.6.0 |
| Observed in versions | 17.4.0 |
| Sprint | Sprint 5: Continued back-end for JIRA versions |
| Backlog bucket |  |
| Bug found in version (deprecated) | 17.4.x |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers | Ihor Dubas |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

1.  Insert an inline work package link via the slash menu or hash

2.  Click on the block to select it (without selecting any surrounding text)

3.  Press Ctrl+C

4.  Press Ctrl+V

### What is the buggy behavior?

Nothing is pasted. Copying a single work package block in isolation does not work.

### What is the expected behavior?

Pressing Ctrl+C on a selected work package block followed by Ctrl+V should paste a copy of the block at the cursor position.

### Technical hints

I assume this is due to not setting the selection correctly when clicking on inline work package links. They just get the blue border, but the cursor is not moving its position. So on click, when we add the blue border, we also need to update BlockNote's current selection to include the work package link.

<br>

### Hints for QA

Please test in different browsers. We already encountered different behaviour for chrome and firefox. So checking the other browsers we want to support would be good, too.
