Add tldraw embed (#3439)

* Test Tldraw embed

* Correct regex

* Correct alt for image

* Resize image to 120x120
This commit is contained in:
Limezy
2022-04-24 00:10:33 +07:00
committed by GitHub
parent 33ce49cc33
commit 3b62c76207
3 changed files with 27 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
import * as React from "react";
import Frame from "../components/Frame";
import { EmbedProps as Props } from ".";
function Tldraw(props: Props) {
return (
<Frame
{...props}
src={props.attrs.href}
title="Tldraw.com Embed"
referrerPolicy="origin"
border
/>
);
}
Tldraw.ENABLED = [new RegExp("https?://www.tldraw.com/r/(.*)$")];
export default Tldraw;