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

Can not copy texts outside of Modeler container #2022

Open
kmarcinkowski-objectivity opened this issue Nov 9, 2023 · 1 comment
Open

Can not copy texts outside of Modeler container #2022

kmarcinkowski-objectivity opened this issue Nov 9, 2023 · 1 comment
Labels
backlog Queued in backlog bug Something isn't working

Comments

@kmarcinkowski-objectivity
Copy link

kmarcinkowski-objectivity commented Nov 9, 2023

Describe the Bug

It's not possible to copy texts placed in DOM outside of BPMN Modeler container with CTRL + C shortcut.

Steps to Reproduce

  1. Start Modeler with copy-paste additional module and keyboard bind to window.
  2. Place any text content HTML element (e.g. label, link, paragraph, ...) anywhere in body outside of bpmn container.
  3. Copy element content and try to paste it e.g. into notepad.

The issue can be also reproduced in https://demo.bpmn.io:

  1. Open demo app page.
  2. Open developer tools and run js script that adds a paragraph to body:
let p = document.createElement('p');
p.innerHTML = 'copy test';
document.body.prepend(p);
  1. Copy the text and try to paste it.

Expected Behavior

It should be possbile to copy any content outside of Modeler normally.

Environment

  • Browser: Chrome, Edge
  • OS: Windows 10
  • Library version: any

Depends on bpmn-io/diagram-js#281

@kmarcinkowski-objectivity kmarcinkowski-objectivity added the bug Something isn't working label Nov 9, 2023
@nikku
Copy link
Member

nikku commented Nov 9, 2023

@kmarcinkowski-objectivity This is likely due to us overriding the default copy shortcut.

Related to bpmn-io/diagram-js#281.

@nikku nikku added the backlog Queued in backlog label Nov 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog Queued in backlog bug Something isn't working
Development

No branches or pull requests

2 participants