Content
View differences
Updated by Judith Roth 1 day 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 link work package block
* 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](https://www.blocknotejs.org/docs/reference/editor/paste-handling)
* Hint from Wieland: The nextcloud OpenProject plugin also does something like this and Titan also built support for pasting work package links into the XWiki-Integration - we could ask them on tipps on how to detect / decide on which URLs to take or maybe take a look at what is done in CKEditor for that. 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 link work package block
* 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](https://www.blocknotejs.org/docs/reference/editor/paste-handling)
* Hint from Wieland: The nextcloud OpenProject plugin also does something like this and Titan also built support for pasting work package links into the XWiki-Integration - we could ask them on tipps on how to detect / decide on which URLs to take or maybe take a look at what is done in CKEditor for that.