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

Implement block action for copying and cutting a single block #6630

Merged
merged 4 commits into from
Jun 9, 2022

Conversation

niklasnatter
Copy link
Contributor

@niklasnatter niklasnatter commented May 30, 2022

Q A
Bug fix? no
New feature? yes
BC breaks? no yes
Deprecations? no
Fixed tickets partly #6436
License MIT

What's in this PR?

This pull request adds a copy and a cut action for blocks. The implementation builds upon the HTML localStorage to allow for copying blocks from one browser window into another browser window.

}

if (value) {
// TODO: gracefully handle clipboard data this is incompatible with available block types
Copy link
Contributor Author

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

Copy link
Member

@alexander-schranz alexander-schranz left a 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.

@mavuio mavuio mentioned this pull request Jun 8, 2022
@alexander-schranz alexander-schranz added Feature New functionality not yet included in Sulu UX Affecting the end user labels Jun 8, 2022
@niklasnatter niklasnatter force-pushed the feature/block-copy-paste branch 2 times, most recently from c288a7c to b48b059 Compare June 8, 2022 13:37
@niklasnatter niklasnatter marked this pull request as ready for review June 8, 2022 13:38
Comment on lines 53 to 54
this.fillArraysDisposer = reaction(() => this.props.value.length, this.fillArrays, {fireImmediately: true});
this.fillArraysDisposer = reaction(() => this.props.value.length, this.fillArrays, {fireImmediately: true});
Copy link
Member

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New functionality not yet included in Sulu UX Affecting the end user
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants