Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: Paste when nothing is selected #5523

Closed
2 tasks done
lexoyo opened this issue Nov 18, 2023 · 1 comment
Closed
2 tasks done

BUG: Paste when nothing is selected #5523

lexoyo opened this issue Nov 18, 2023 · 1 comment

Comments

@lexoyo
Copy link
Contributor

lexoyo commented Nov 18, 2023

GrapesJS version

  • I confirm to use the latest version of GrapesJS

What browser are you using?

Firefox

Reproducible demo link

https://grapesjs.com/demo.html

Describe the bug

How to reproduce the bug?

  1. Select a component on stage
  2. Copy the component with CTRL+c
  3. Select the body (deselect the component)
  4. Paste with CTRL+v

What is the expected behavior?

Paste in the current page, at the end of the body

What is the current behavior?

It does nothing because of this condition:

if (!collection) return;

Code of Conduct

  • I agree to follow this project's Code of Conduct
lexoyo added a commit to lexoyo/grapesjs that referenced this issue Nov 18, 2023
@lexoyo
Copy link
Contributor Author

lexoyo commented Nov 18, 2023

Note that this bug makes it impossible to copy paste elements to an empty page

@artf artf closed this as completed in 0a651c3 Nov 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant