platform icon indicating copy to clipboard operation
platform copied to clipboard

Fix typing and pasting different behaviour in chat

Open kujaomega opened this issue 7 months ago • 1 comments

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

Your environment

  • Version of huly a471415
  • 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

kujaomega avatar Jul 02 '24 16:07 kujaomega