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

    Function getSchemaTypeNameByName

    • Get the type of a schema item by its name.

      Parameters

      • name: string

        The name of the schema item

      • schema: Schema

        The Prosemiror schema to search in

      Returns null | "mark" | "node"

      The type of the schema item (node or mark), or null if it doesn't exist