@mocanvas/mocanvas · function
declare function defaultHandleExternalUrlAsset(editor: Editor, info: {
type: "url";
url: string;
}, _opts?: TLDefaultExternalContentHandlerOpts): Promise<Asset | undefined>Build a bookmark asset for a url, without creating any shape.
mocanvas performs no network request of its own here: unfurling a link needs
a server that can fetch it, which is the app's to provide. The asset that
comes back carries the url and empty metadata, and an app that has an unfurl
endpoint registers its own url asset handler to fill the rest in.
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.