Skip to content

Implement cross browser copy + paste#3

Merged
nikku merged 5 commits into
mainfrom
system-cpp
Jan 9, 2026
Merged

Implement cross browser copy + paste#3
nikku merged 5 commits into
mainfrom
system-cpp

Conversation

@nikku

@nikku nikku commented Aug 15, 2022

Copy link
Copy Markdown
Owner

Turns this example into a module that implements cross browser copy + paste, utilizes the system clipboard (text) to transport the tree, works across different browsers, and browser tabs.

Demo

Showing copy and paste across Chrome and Firefox (two tabs):

capture EnmWjU_optimized

Tasks

  • Validate basic use of copy and paste from within user copy / paste context (using event.clipboardData)
  • Verify this works with extensions
  • Verify how pasting non-existing extension elements behaves
  • Investigate whether we should use navigator.clipboard instead

Relies on fixed versions of diagram-js (bpmn-io/diagram-js#660, bpmn-io/diagram-js#659) and bpmn-js (bpmn-io/bpmn-js#1707) to work.

Closes #2

@nikku nikku self-assigned this Aug 15, 2022
@nikku nikku marked this pull request as draft August 19, 2022 19:03
@nikku nikku added the backlog label Jan 12, 2024
@Handsome1337

Copy link
Copy Markdown

Why is it draft? Can I use it?

@nikku

nikku commented Feb 12, 2025

Copy link
Copy Markdown
Owner Author

Why is it draft? Can I use it?

Did you try it? Did it work?

@Handsome1337

Handsome1337 commented Feb 12, 2025

Copy link
Copy Markdown

Did you try it? Did it work?

I did not try. Turns out that I need extra copy logic (need to copy extra arguments and item definitions with ioSpecification) so I'm writing my own module. But it's still interesting to me why it's not merged

@nikku

nikku commented Mar 21, 2025

Copy link
Copy Markdown
Owner Author

@Handsome1337 Probably worth to revisit this PR, since this is there, at last.

@nikku

nikku commented Jan 9, 2026

Copy link
Copy Markdown
Owner Author

Updated for bpmn-js@18.10.1, attached you find a demo to see things working:

capture EnmWjU_optimized

@nikku nikku marked this pull request as ready for review January 9, 2026 15:17
@nikku nikku merged commit d172bdd into main Jan 9, 2026
2 checks passed
@nikku nikku deleted the system-cpp branch January 9, 2026 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

copy&paste feature stops working in version 5.0 onwards

2 participants