@mocanvas/mocanvas · function
declare function registerDefaultExternalContentHandlers(editor: Editor, opts?: DefaultExternalContentOptions): () => voidInstall the default drop/paste behaviour: image files become image assets + image shapes, SVG markup becomes an image asset, text and urls become text shapes. Types that already have a handler are left alone. Returns a function that removes the handlers this call installed.
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.