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

    Function getSchemaTypeByName

    • Tries to get a node or mark type by its name.

      Parameters

      • name: string

        The name of the node or mark type

      • schema: Schema

        The Prosemiror schema to search in

      Returns null | NodeType | MarkType

      The node or mark type, or null if it doesn't exist