-
Notifications
You must be signed in to change notification settings - Fork 329
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
Implement block action for copying and cutting a single block #6630
Implement block action for copying and cutting a single block #6630
Conversation
} | ||
|
||
if (value) { | ||
// TODO: gracefully handle clipboard data this is incompatible with available block types |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i have not tested this at all yet
7843bf4
to
85695f1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did not yet have a look at all.
src/Sulu/Bundle/AdminBundle/Resources/js/components/BlockCollection/BlockCollection.js
Outdated
Show resolved
Hide resolved
src/Sulu/Bundle/AdminBundle/Resources/js/stores/clipboardStore/clipboardStore.js
Outdated
Show resolved
Hide resolved
85695f1
to
5bcc782
Compare
c288a7c
to
b48b059
Compare
b48b059
to
bbbdd01
Compare
c7a940c
to
c2ff373
Compare
this.fillArraysDisposer = reaction(() => this.props.value.length, this.fillArrays, {fireImmediately: true}); | ||
this.fillArraysDisposer = reaction(() => this.props.value.length, this.fillArrays, {fireImmediately: true}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this expected to be duplicated?
src/Sulu/Bundle/AdminBundle/Resources/js/components/BlockCollection/BlockCollection.js
Outdated
Show resolved
Hide resolved
…ction/BlockCollection.js
What's in this PR?
This pull request adds a
copy
and acut
action for blocks. The implementation builds upon the HTMLlocalStorage
to allow for copying blocks from one browser window into another browser window.