defaultHandleExternalFileContent

See source code
function defaultHandleExternalFileContent(
  editor: Editor,
  {
    point,
    files,
  }: {
    files: File[]
    point?: VecLike
  },
  {
    maxAssetSize,
    acceptedImageMimeTypes,
    acceptedVideoMimeTypes,
    toasts,
    msg,
  }: TLDefaultExternalContentHandlerOpts
): Promise<void>

Parameters

NameDescription

editor

{ point, files }

{
  files: File[]
  point?: VecLike
}

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

Returns

Promise<void>
Prev
defaultHandleExternalFileAsset
Next
defaultHandleExternalSvgTextContent