decaporg / decap-cms

A Git-based CMS for Static Site Generators
https://decapcms.org
MIT License
17.65k stars 3.02k forks source link

Codeblock widget swallowing copy command #7143

Open DavidWells opened 3 months ago

DavidWells commented 3 months ago

When trying to copy/cut code from codeblock widgets the paste is empty.

Steps to reproduce the behavior.

  1. Go to https://demo.decapcms.org/#/collections/posts/entries/2024-03-14-post-number-20
  2. Click on add code block
  3. Add code
  4. try to copy the code out of code block and see empty paste

See example:

https://github.com/decaporg/decap-cms/assets/532272/48ddb28e-f842-4a34-b73d-803a0a07daf7

martinjagodic commented 3 months ago

@DavidWells this sentence is very confusing to me: "try to code the code out of code block and see empty paste"

What do you mean my code the code?

DavidWells commented 3 months ago

Lol sorry. "try to copy the code out of code block and see empty paste"

You can't copy code out of the code blocks