# Bug BNE-25 - BlockNote: Work package macro loses its styling upon save and also loses its functionality on edit

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Modules and project features / Text editor / BlockNoteJS |
| Target versions | 17.0.0 |
| Observed in versions | 16.5.0 |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) | 16.5.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.  Login and create a doc of type Experimental on Edge or edit an existing one
    
2.  With / find OpenProject work package option
    
3.  When the search field appears, try searching for a work package by typing a word
    
4.  Select a work package and observe its appearance
    
5.  Save -&gt; observe that the macro is not rendered the same way and lost its styling
    
6.  Edit
    

### What is the buggy behavior?

1.  The macro displays as plain test (video attached)
    

###   

###   

###   

###   

###   

###   

### What is the expected behavior?

1.  Macro should not change its appearance and functionality on save and edit
    

###   

### Environment information

**OpenProject version**

**Core build**

[14952c6f0e6935d904f5f224322859f5dcb0b8cb](https://github.com/opf/openproject/commits/14952c6f0e6935d904f5f224322859f5dcb0b8cb)

**Product version**

[a58c32168495791b5944adbc577c4f0db8b1af03](https://github.com/opf/saas-openproject/commits/a58c32168495791b5944adbc577c4f0db8b1af03)

**Core version**

OpenProject 16.5.0

**Browser**

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

**Operating System**

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