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:
BIN
public/images/scribe.png
Normal file
BIN
public/images/scribe.png
Normal file
Binary file not shown.
After ![]() (image error) Size: 14 KiB |
19
shared/editor/embeds/Scribe.tsx
Normal file
19
shared/editor/embeds/Scribe.tsx
Normal file
@ -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",
|
||||
|
Reference in New Issue
Block a user