# Bug BNE-82 - Wrong cursor placement after inserting links to Work Packages in BlockNote

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Modules and project features / Documents, Modules and project features / Text editor / BlockNoteJS / OpenProject Extensions |
| Target versions | 17.5.0 |
| Observed in versions | 17.4.0 |
| Sprint | BlockNote Update; Finishing Identifiers; Starting 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 |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

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

## Costs

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

## Description

### Steps to reproduce

1.  Open a document, write some text
    
2.  in the middle, add a link work package block with `/wp`
    
3.  See the cursor jump to the end of the line after insertion
    

Also for the # notation:

1.  Open a document, write some text
    
2.  in the middle, add a link work package block with `##` or `###`
    
3.  See the cursor jump to the next line after insertion (instead of behind the newly added element)
    

### What is the buggy behavior?

Cursor should stay right behind the newly inserted work package instead of jumping somewhere else

### What is the expected behavior?

_Cursor should stay right behind the newly inserted work package_

###   

### Screenshots and other files

[Screencast\_from\_2026-04-24\_14-42-34.webm](https://community.openproject.org/attachments/920676/Screencast_from_2026-04-24_14-42-34.webm)

[Screencast\_from\_2026-05-20\_09-49-36.webm](https://community.openproject.org/attachments/921209/Screencast_from_2026-05-20_09-49-36.webm)

### Environment information

**Browser**

*   [x] Chrome
*   [ ] Firefox
*   [ ] Safari
*   [ ] Mobile Safari
*   [ ] Other (please specify)

**Operating System**

*   [ ] Windows
*   [ ] Mac OS X
*   [ ] Mobile iOS
*   [ ] Mobile Android
*   [ ] Linux (please specify distro)
*   [ ] Chrome OS
*   [ ] Other (please specify)

**Language**

_Please specify the browser language and the language of the OpenProject user for which the bug occurred._
