feat: init and add video extension to editor/canva

This commit is contained in:
swve 2022-12-14 17:49:21 +01:00
parent 8d0efdb93e
commit 9f916449c5
9 changed files with 163 additions and 10 deletions

View file

@ -17,6 +17,7 @@ import InfoCallout from "./Extensions/Callout/Info/InfoCallout";
import WarningCallout from "./Extensions/Callout/Warning/WarningCallout";
import ImageBlock from "./Extensions/Image/ImageBlock";
import Youtube from "@tiptap/extension-youtube";
import VideoBlock from "./Extensions/Video/VideoBlock";
interface Editor {
content: string;
@ -48,6 +49,10 @@ function Editor(props: Editor) {
editable: true,
element: props.element,
}),
VideoBlock.configure({
editable: true,
element: props.element,
}),
Youtube.configure({
controls: true,
modestBranding: true,