Draft-js clicks the button to achieve the effect of Ctrl+C/X

1. Recently learning react, requires the development of a rich text editor. I took a fancy to draft-js,
developed by Facebook. I implemented these block-level styles and inline styles in front of the document

.

clipboard.png

now there is a requirement to set up two buttons
copy and cut. How to achieve this, ladies and gentlemen, thank you-sharp-sharp-sharp problem description

Sep.16,2021
Menu