hcengineering / hcengineering/platform

Fix typing and pasting different behaviour in chat

Open
#5,982 1 comment 2 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
27.7k
Forks
2.2k
PR merge metrics
No merged PRs in 30d

Description

### Description of the issue
When someone is using the chat and is typing HTML text, links are not created on the chat, but if someone copies a text with links, those links are created as links.
Platform is using @tiptap/extension-link and this library is having some issues when links are displayed like [https://github.com/ueberdosis/tiptap/issues/5290](https://github.com/ueberdosis/tiptap/issues/5290)

### Your environment
* Version of huly [a471415](https://github.com/hcengineering/platform/commit/a4714150ac8f9534d61654af907923f55860b590)
* Browser Chrome 126.0.6478.126
* Your operating system: Ubuntu 22

### Steps to reproduce
- Go to the chat.
- Type a HTML link text like 'https://curl2url.com' and this link is not displayed in the chat.
- Copy a link, and this link will be displayed in the chat.
- Type "FOO_BAR.MP3".

### Expected behaviour
- Links should be displayed in the chat in both ways or in any way, to match typing and pasting behaviour?
- Links should be displayed correctly

### Actual behaviour
- Typing HTML text link is not displayed correctly
- Some links are not displayed correctly

### Possible solutions
Stop using @tiptap/extension-link library and fix how links are displayed

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.