feat: add warning custom extension

This commit is contained in:
swve 2022-12-08 10:31:43 +01:00
parent fe8fdd1769
commit 88644ad902
6 changed files with 99 additions and 9 deletions

View file

@ -14,6 +14,7 @@ import { SlashIcon } from "@radix-ui/react-icons";
import Avvvatars from "avvvatars-react";
// extensions
import InfoCallout from "./Extensions/Callout/Info/InfoCallout";
import WarningCallout from "./Extensions/Callout/Warning/WarningCallout";
interface Editor {
content: string;
@ -32,11 +33,14 @@ function Editor(props: Editor) {
extensions: [
StarterKit.configure({
// The Collaboration extension comes with its own history handling
// history: false,
// history: false,
}),
InfoCallout.configure({
editable: true,
}),
WarningCallout.configure({
editable: true,
}),
// Register the document with Tiptap
// Collaboration.configure({
// document: props.ydoc,