defaultHandleExternalFileReplaceContent

See source code
function defaultHandleExternalFileReplaceContent(
  editor: Editor,
  { file, shapeId }: TLFileReplaceExternalContent,
  options: TLDefaultExternalContentHandlerOpts,
): Promise<TLAsset | undefined>;

Parameters

NameDescription

editor

Editor;

{ file, shapeId }

options

Returns

Promise<TLAsset | undefined>;
Prev
defaultHandleExternalFileContent
Next
defaultHandleExternalSvgTextContent