Content
View differences
Updated by Wieland Lindenthal 7 days ago
As a user copying a link to a work package in a document
I want not to see a plain link, but the rich link representation with additional information
**Acceptance Criteria**
* When a link to a work package of the same OpenProject instance is pasted into BlockNote it is transformed to a rich link work package block
* The URL is transformed to the canoncial URL to not accidentally expose information to people who are not allowed to see the work package (but are allowed to see the document)
* The size is of the link is determined by the context it is pasted into (re-use the same size selection logic as when included via slash command)
* Into an empty paragraph: Card link
* Into a non-empty paragraph: Regular
**Technical notes**
* https://www.blocknotejs.org/docs/reference/editor/paste-handling
I want not to see a plain link, but the rich link representation with additional information
**Acceptance Criteria**
* When a link to a work package of the same OpenProject instance is pasted into BlockNote it is transformed to a rich link work package block
* The URL is transformed to the canoncial URL to not accidentally expose information to people who are not allowed to see the work package (but are allowed to see the document)
* The size is of the link is determined by the context it is pasted into (re-use the same size selection logic as when included via slash command)
* Into an empty paragraph: Card link
* Into a non-empty paragraph: Regular
**Technical notes**
* https://www.blocknotejs.org/docs/reference/editor/paste-handling