# Bug BNE-73 - Inserting "#" inside text removes content after cursor

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

## 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 |  |
| 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.  Open any page with the rich text editor
    
2.  Type a string, for example: `Hello world example`
    
3.  Place the cursor in the middle of the text (e.g. after &quot;Hello&quot;)
    
4.  Insert the character `#`
    

### What is the buggy behavior?

When inserting the # character in the middle of an existing text block, all content after the cursor position is removed.  
No error notification is shown, but the editor state is incorrectly updated, resulting in data loss.  
This happens consistently when the trigger character # is inserted anywhere except at the end of the block.

### What is the expected behavior?

The editor should insert the # character at the current cursor position without affecting the rest of the content.  
All text after the cursor should remain unchanged.
