Back to Tldraw

External content sources

apps/examples/src/examples/data/assets/external-content-sources/README.md

5.0.0291 B
Original Source

Handle different types of content when pasting into tldraw.


In this example, we register a special handler for when the user pastes in 'text/html' content. We add it to a special shape type that renders the HTML content directly. Try copying and pasting some code from a VSCode file.