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

    Function nodePasteRule

    • Build an paste rule that adds a node when the matched text is pasted into it.

      Parameters

      • config: {
            find: PasteRuleFinder;
            getAttributes?:
                | null
                | false
                | Record<string, any>
                | (
                    (
                        match: ExtendedRegExpMatchArray,
                        event: ClipboardEvent,
                    ) => Record<string, any>
                );
            getContent?:
                | null
                | false
                | JSONContent[]
                | ((attrs: Record<string, any>) => JSONContent[]);
            type: NodeType;
        }

      Returns PasteRule