Provides methods to access the Assets schema

Internal

Other

  • 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');