Spectrum: Can't paste inside a code block with selected text

Created on 31 Aug 2018  路  3Comments  路  Source: withspectrum/spectrum


Follow the next steps to reproduce:

  • Create a new conversation
  • Add a code block with ````
  • Copy some text to the clipboard
  • Add some code to the code block
  • Select part of the text inside the code block
  • Try to paste the text from the clipboard over the selected text (press Crtl + v or Cmd + v)

As a result the paste action fails.

Bug

Most helpful comment

This will be fixed by the upcoming move to plaintext text editing in #4564 and #4472!

All 3 comments

Thanks for the heads up! Seems like we've got a few issues cropping up with code blocks. Will dig in cc @mxstbr :)

I recently added custom paste behavior so that pasting into code blocks works at all and doesn't create a million code blocks鈥攚hile that fixed the million code blocks issue, it probably broke this in the process 馃槄

Will look into this soon!

This will be fixed by the upcoming move to plaintext text editing in #4564 and #4472!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

brianlovin picture brianlovin  路  5Comments

atlx picture atlx  路  5Comments

entrptaher picture entrptaher  路  3Comments

ArturKlajnerok picture ArturKlajnerok  路  7Comments

davidluhr picture davidluhr  路  3Comments