registerDefaultExternalContentHandlers

See source code
function registerDefaultExternalContentHandlers(
  editor: Editor,
  {
    maxImageDimension,
    maxAssetSize,
    acceptedImageMimeTypes,
    acceptedVideoMimeTypes,
  }: Required<TLExternalContentProps>,
  {
    toasts,
    msg,
  }: {
    msg: ReturnType<typeof useTranslation>
    toasts: TLUiToastsContextType
  }
): void

Parameters

NameDescription

editor

{ maxImageDimension, maxAssetSize, acceptedImageMimeTypes, acceptedVideoMimeTypes, }

{ toasts, msg }

{
  msg: ReturnType<typeof useTranslation>
  toasts: TLUiToastsContextType
}

Returns

void
Prev
preloadFont
Next
registerDefaultSideEffects