MicrosoftEdge / MicrosoftEdge/WebView2Feedback

Enable JavascriptAccessClipboard and JavascriptDomPaste in WPF

Open
#1,913 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature request priority-low tracked
Dominant language
PowerShell
Stars
526
Forks
67
PR merge metrics
No merged PRs in 30d

Description

Currently my project uses CefSharp.
Now I want to use webview2 instead.

How can I achieve the effect "JavascriptAccessClipboard" and "JavascriptDomPaste" in webview2 like CefSharp ?
This is the description in CefSharp.

    //    Controls whether JavaScript can access the clipboard. Also configurable using
    //    the "disable-javascript-access-clipboard" command-line switch.
    CefState JavascriptAccessClipboard
    {
        get;
        set;
    }

    //     Controls whether DOM pasting is supported in the editor via execCommand("paste").
    //     The |javascript_access_clipboard| setting must also be enabled. Also configurable
    //     using the "disable-javascript-dom-paste" command-line switch.
    CefState JavascriptDomPaste
    {
        get;
        set;
    }

Thanks!

AB#30995003

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue mentions WPF, WebView2, CefSharp, and the JavaScriptAccessClipboard and JavaScriptDomPaste settings, but names no files, tests, or entry points. Begin by determining whether WebView2 exposes equivalent controls for these requested behaviors; done would be a documented way to achieve them or a clearly scoped feature request.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
desktop
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.