Skip to content

Commit

Permalink
Revert "fix copy command"
Browse files Browse the repository at this point in the history
This reverts commit e6d70b2.
  • Loading branch information
draganescu committed Aug 14, 2023
1 parent 6662c28 commit f924b9d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 19 deletions.
18 changes: 8 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion packages/block-editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@
"@wordpress/wordcount": "file:../wordcount",
"change-case": "^4.1.2",
"classnames": "^2.3.1",
"clipboard": "2.0.11",
"colord": "^2.7.0",
"deepmerge": "^4.3.0",
"diff": "^4.0.2",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
/**
* External dependencies
*/
import Clipboard from 'clipboard';

/**
* WordPress dependencies
*/
import { __, sprintf } from '@wordpress/i18n';
import {
hasBlockSupport,
store as blocksStore,
serialize,
switchToBlockType,
isTemplatePart,
} from '@wordpress/blocks';
Expand Down Expand Up @@ -245,7 +239,6 @@ const useActionsCommands = () => {
replaceBlocks( clientIds, innerBlocks );
};
const onCopy = () => {
Clipboard.copy( serialize( blocks ) );
const selectedBlockClientIds = blocks.map(
( { clientId } ) => clientId
);
Expand Down
2 changes: 1 addition & 1 deletion packages/compose/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"@wordpress/keycodes": "file:../keycodes",
"@wordpress/priority-queue": "file:../priority-queue",
"change-case": "^4.1.2",
"clipboard": "^2.0.11",
"clipboard": "^2.0.8",
"mousetrap": "^1.6.5",
"use-memo-one": "^1.1.1"
},
Expand Down

0 comments on commit f924b9d

Please sign in to comment.