@mocanvas/editor · interface

TLErrorExternalContentSource

interface TLErrorExternalContentSource

A reading that failed.

Kept in the list rather than dropped so a handler can tell "there was no HTML on the clipboard" from "the HTML was there and would not parse" — the second is worth telling the person about, the first is not.


Properties · 3

reason: string

Why it failed.

subtype?: string | undefined

What the reading would have been.

type: "error"

mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.