Add tldraw embed (#3439)
* Test Tldraw embed * Correct regex * Correct alt for image * Resize image to 120x120
This commit is contained in:
19
shared/editor/embeds/Tldraw.tsx
Normal file
19
shared/editor/embeds/Tldraw.tsx
Normal 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;
|
||||
Reference in New Issue
Block a user