mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat: add math extension to editor
This commit is contained in:
parent
1d0ce89aa3
commit
5dacaa4871
7 changed files with 255 additions and 1 deletions
|
|
@ -19,6 +19,7 @@ import ImageBlock from "./Extensions/Image/ImageBlock";
|
|||
import Youtube from "@tiptap/extension-youtube";
|
||||
import VideoBlock from "./Extensions/Video/VideoBlock";
|
||||
import { Save } from "lucide-react";
|
||||
import MathEquationBlock from "./Extensions/MathEquation/MathEquationBlock";
|
||||
|
||||
interface Editor {
|
||||
content: string;
|
||||
|
|
@ -54,6 +55,10 @@ function Editor(props: Editor) {
|
|||
editable: true,
|
||||
lecture: props.lecture,
|
||||
}),
|
||||
MathEquationBlock.configure({
|
||||
editable: true,
|
||||
lecture: props.lecture,
|
||||
}),
|
||||
Youtube.configure({
|
||||
controls: true,
|
||||
modestBranding: true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue