AboutSupportDeveloper GuideVersion 42.138.100.102

Control copy operations for a matched URL.

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

Properties

Properties

behavior: "allow" | "block" | "protect"

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.

'allowed'
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.

    ''
    
""