MenuToggleBlockWrapCommand: (
    node: NodeType,
    attrs?: object,
) => ProseMirrorCommand

Type declaration

    • (node: NodeType, attrs?: object): ProseMirrorCommand
    • Parameters

      • node: NodeType

        The node to wrap the selection in.

      • Optionalattrs: object

        Attributes for the node.

      Returns ProseMirrorCommand