RocketChat / feature-requests

This repository is used to track Rocket.Chat feature requests and discussions. Click here to open a new feature request.
21 stars 9 forks source link

Copy and paste with markdown formatting #349

Open xmedeko opened 4 years ago

xmedeko commented 4 years ago

Is your feature request related to a problem? Please describe. I'd like to copy a part of my colleague message with formatting and paste it into my message and keep the formatting, i.e markdown. Currently, I can:

  1. copy and paste the text without formatting,
  2. or choose "Copy" form the message menu and copy the whole message in markdown and then edit it. This option is inconvenient when the message is long and I need to copy just a small part of it.

Describe the solution you'd like It seems to me Rocket.Chat already inserts a formatted text (maybe text/html) into the clipboard, so a sufficient solution could to change it into the markdown on paste. Maybe some context menu "Paste formatted" could do this job to be backward compatible. (And paste formatted text form other sources, too.)

Describe alternatives you've considered Rocket.Chat may insert copied text as text/markdown, so the paste would be trivial.

daserge commented 2 years ago

FYI guys here's s an implementation of the pasting part: https://github.com/RocketChat/Rocket.Chat/pull/25763 I'd be grateful for a review.