mattermost/mattermost

Pasting a URL using ctrl+V should create a link, even when editing an existing message

Open

#26,675 opened on 2024年4月5日

GitHub で見る
 (5 comments) (0 reactions) (1 assignee)TypeScript (7,823 forks)batch import
Help Wanted

Repository metrics

Stars
 (32,880 stars)
PR merge metrics
 (平均マージ 6d 5h) (30d で 318 merged PRs)

説明

Summary

Bug report in one concise sentence

Steps to reproduce

  1. Start a new message, Write Hello.
  2. Copy a URL somewhere (for example https://github.com/)
  3. Select Hello and press CTRL + V → this creates a link: [Hello](https://github.com/)
  4. Send your message
  5. Edit this message and write Mary
  6. Do the same: select it and press CTRL + V → this replaces Mary by the URL

Expected behavior

  1. A link should be created, like in step 3

I also see in https://docs.mattermost.com/collaborate/format-messages.html that:

Format selected message text as a link by pressing Ctrl K on Windows and Linux, or by pressing ⌘ K on Mac.

I also mention https://github.com/mattermost/mattermost/issues/26399 because this is related

While Ctrl K on Windows triggers a search, not a link.

コントリビューターガイド