mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat: add warning custom extension
This commit is contained in:
parent
fe8fdd1769
commit
88644ad902
6 changed files with 99 additions and 9 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue