defaultHandleExternalFileAsset

See source code
function defaultHandleExternalFileAsset(
  editor: Editor,
  { file, assetId }: TLFileExternalAsset,
  {
    acceptedImageMimeTypes,
    acceptedVideoMimeTypes,
    maxAssetSize,
    maxImageDimension,
    toasts,
    msg,
  }: TLDefaultExternalContentHandlerOpts
): Promise<TLAsset>

Parameters

NameDescription

editor

{ file, assetId }

{ acceptedImageMimeTypes, acceptedVideoMimeTypes, maxAssetSize, maxImageDimension, toasts, msg, }

Returns

Promise<TLAsset>
Prev
defaultHandleExternalEmbedContent
Next
defaultHandleExternalFileContent