@umbraco-cms/backoffice
    Preparing search index...

    Paste rules are used to react to pasted content.

    Index

    Constructors

    Properties

    Constructors

    • Parameters

      • config: {
            find: PasteRuleFinder;
            handler: (
                props: {
                    can: () => CanCommands;
                    chain: () => ChainedCommands;
                    commands: SingleCommands;
                    dropEvent: null | DragEvent;
                    match: ExtendedRegExpMatchArray;
                    pasteEvent: null | ClipboardEvent;
                    range: Range;
                    state: EditorState;
                },
            ) => null
            | void;
        }

      Returns PasteRule

    Properties

    handler: (
        props: {
            can: () => CanCommands;
            chain: () => ChainedCommands;
            commands: SingleCommands;
            dropEvent: null | DragEvent;
            match: ExtendedRegExpMatchArray;
            pasteEvent: null | ClipboardEvent;
            range: Range;
            state: EditorState;
        },
    ) => null
    | void