mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat: add pictures extension to editor and canva
This commit is contained in:
parent
643d4ae2e7
commit
5eb9101084
11 changed files with 243 additions and 8 deletions
|
|
@ -4,6 +4,7 @@ import StarterKit from "@tiptap/starter-kit";
|
|||
// Custom Extensions
|
||||
import InfoCallout from "../Editor/Extensions/Callout/Info/InfoCallout";
|
||||
import WarningCallout from "../Editor/Extensions/Callout/Warning/WarningCallout";
|
||||
import ImageBlock from "../Editor/Extensions/Image/ImageBlock";
|
||||
|
||||
interface Editor {
|
||||
content: string;
|
||||
|
|
@ -24,6 +25,10 @@ function Canva(props: Editor) {
|
|||
WarningCallout.configure({
|
||||
editable: isEditable,
|
||||
}),
|
||||
ImageBlock.configure({
|
||||
editable: isEditable,
|
||||
element: props.element,
|
||||
}),
|
||||
],
|
||||
|
||||
content: props.content,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue