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
|
|
@ -9,6 +9,7 @@ import Youtube from "@tiptap/extension-youtube";
|
|||
import { EditorContentWrapper } from "@editor/Editor";
|
||||
import VideoBlock from "@editor/Extensions/Video/VideoBlock";
|
||||
import { styled } from "styled-components";
|
||||
import MathEquationBlock from "@components/Editor/Extensions/MathEquation/MathEquationBlock";
|
||||
|
||||
interface Editor {
|
||||
content: string;
|
||||
|
|
@ -37,6 +38,10 @@ function Canva(props: Editor) {
|
|||
editable: true,
|
||||
lecture: props.lecture,
|
||||
}),
|
||||
MathEquationBlock.configure({
|
||||
editable: false,
|
||||
lecture: props.lecture,
|
||||
}),
|
||||
Youtube.configure({
|
||||
controls: true,
|
||||
modestBranding: true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue