AboutSupportDeveloper GuideVersion 40.130.103.15

Control copy operations for a matched URL.

interface CopyPermissions {
    behavior: "allow" | "block" | "protect";
    options?: {
        replacementText: string;
    };
}

Properties

Properties

behavior: "allow" | "block" | "protect"
'allowed'

Controls the behavior for copy operations for a matched URL.

allow: Enables all copy operations.
block: Disables all copy operations.
protect: Protects any copied content. Only URLs that have set paste.behavior: 'all-content' will be allowed to paste this content.
options?: {
    replacementText: string;
}

Additional copy operation options

Type declaration

  • replacementText: string
    ''

    When setting behavior = 'protected' , this string will be pasted to other applications that do not have a matching URL instead of the original content.