1
0
mirror of https://github.com/outline/outline.git synced 2025-03-15 19:18:00 +00:00

feat: Add 'Scribe' embed support

This commit is contained in:
Tom Moor
2022-05-21 09:28:04 +01:00
parent c08940ca3c
commit 0f93e92bc6
3 changed files with 27 additions and 0 deletions
public/images
shared/editor/embeds

BIN
public/images/scribe.png Normal file

Binary file not shown.

After

(image error) Size: 14 KiB

@ -0,0 +1,19 @@
import * as React from "react";
import Frame from "../components/Frame";
import { EmbedProps as Props } from ".";
export default function Scribe(props: Props) {
const { matches } = props.attrs;
const shareId = matches[1];
return (
<Frame
{...props}
src={`https://scribehow.com/embed/${shareId}`}
title="Scribe"
border
/>
);
}
Scribe.ENABLED = [/^https?:\/\/scribehow\.com\/shared\/(.*)$/];

@ -34,6 +34,7 @@ import ModeAnalytics from "./ModeAnalytics";
import Otter from "./Otter";
import Pitch from "./Pitch";
import Prezi from "./Prezi";
import Scribe from "./Scribe";
import Spotify from "./Spotify";
import Tldraw from "./Tldraw";
import Trello from "./Trello";
@ -311,6 +312,13 @@ const embeds: EmbedDescriptor[] = [
component: Prezi,
matcher: matcher(Prezi),
},
{
title: "Scribe",
keywords: "screencast",
icon: () => <Img src="/images/scribe.png" alt="Scribe" />,
component: Scribe,
matcher: matcher(Scribe),
},
{
title: "Spotify",
keywords: "music",