Provides methods to access the Assets schema

Internal

Other

  • Gets default data for asset type

    Parameters

    • type: string

      The asset type

    Returns object

    The default data

  • Gets a list of fields of a particular type for an asset type

    Parameters

    • assetType: string

      The type of the asset.

    • type: string

      The desired type

    Returns string[]

    A list of fields

    const materialAssetPaths = editor.schema.assets.getFieldsOfType('material', 'asset');