feat: add ExternalObjects (Embeds) to editor

This commit is contained in:
swve 2024-09-27 20:58:10 +02:00
parent b1d05168b6
commit d8be321021
7 changed files with 279 additions and 2 deletions

View file

@ -24,6 +24,7 @@ import java from 'highlight.js/lib/languages/java'
import { NoTextInput } from '@components/Objects/Editor/Extensions/NoTextInput/NoTextInput'
import EditorOptionsProvider from '@components/Contexts/Editor/EditorContext'
import AICanvaToolkit from './AI/AICanvaToolkit'
import EmbedObjects from '@components/Objects/Editor/Extensions/EmbedObjects/EmbedObjects'
interface Editor {
content: string
@ -85,6 +86,10 @@ function Canva(props: Editor) {
CodeBlockLowlight.configure({
lowlight,
}),
EmbedObjects.configure({
editable: isEditable,
activity: props.activity,
}),
],
content: props.content,