Uploaded image for project: 'TRELLO'
  1. TRELLO
  2. TRELLO-698

Using the Cut shortcut (Cmd + X) on a comment or description with formatted text will paste that Card URL instead

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: High High
    • Card - Editor
    • None
    • 11
    • Severity 3 - Minor

      Issue Summary

      When attempting to cut (using Command+X) a hyperlink from a card comment, the clipboard stores the card's URL instead of the original hyperlink. There is another scenario below when a description is cut (using Command+X), the clipboard only stores the card's URL instead of the card description. Both of these scenarios only happen when the starting text is formatted in any way (heading text, italic, bold, ordered or undordered list, code block, strikethrough, hyperlink). Unformatted text does not have this issue. 

      Steps to Reproduce (Command+X a hyperlink in a comment)

      1. Create a card and add a comment containing a hyperlink.
      2. Highlight the URL by dragging your cursor over it.
      3. Use Command+X or right-click and select "Cut" to remove the hyperlink.
      4. Paste the contents of the clipboard into any text field to view the result.

      This message pops-up when cutting the link:

      Expected Results

      The original hyperlink should be removed from the comment and available for pasting elsewhere.

      Actual Results

      The hyperlink is removed from the comment, but pasting results in the Trello card URL instead of the intended hyperlink.

      Issue reproduced: Screen Recording 2024-10-02 at 10.07.21.mov

      Workaround

      Use the "Copy" function instead of "Cut" to retain the original hyperlink for pasting.

      Another scenario:

      Another scenario for the same bug when a description is cut from the card.

      Steps to Reproduce (Command+X a formatted text in the description)

      1. Open an existing card.
      2. Click in the description area
      3. Select some text in that description. The first word in the selection must be bold.
      4. Perform a command-x to cut that text

      Expected Results

      The text will disappear (as it should), and when you paste the description to another card, it should paste the exact text that you cut from the original card. 

      Actual Results

      The text will disappear (as it should), but you'll see a popup message on the bottom left of the browser window that says "Card Copied to Clipboard"

      If you then paste the contents of the clipboard, you'll actually be pasting the card link, and the text you cut will be gone. 

      Workaround

      Use the "Copy" function instead of "Cut" to retain the original description for pasting.

              mellis MarcusEllis 🦖
              419336ae547f Augusto Lisboa (Inactive)
              Votes:
              6 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: