There is no way to cut, copy, and paste from a context menu.
In order to cut, copy, and paste using a context menu on the ChromiumWebBrowser control, the cut, copy, and paste commands must be exposed.
I have solved this new feature with the code below, but I am not sure how to contribute or if this is even something that should be contributed. It would help me out if it made it the nuget package.
Sample CefSharp web browser with cut, copy, paste commands
@JCasterline Thank you for the very detailed suggestion :+1: Sounds like a reasonable request. Feel free to create a PR and we'll look at merging your changes.
There is no way to cut, copy, and paste from a context menu.
In order to cut, copy, and paste using a context menu on the ChromiumWebBrowser control, the cut, copy, and paste commands must be exposed.
I have solved this new feature with the code below, but I am not sure how to contribute or if this is even something that should be contributed. It would help me out if it made it the nuget package.
Sample CefSharp web browser with cut, copy, paste commands
First expose the commands on the IWpfWebBrowser class
The commands then have to be implemented in the ChromiumWebBrowser control Add these lines to the list of command declarations
Add these lines to the ChromiumWebBrowser constructor
Thank you, Jamie