mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat: add buttons extension blocks
This commit is contained in:
parent
8965ee67c3
commit
f2c6687660
5 changed files with 241 additions and 4 deletions
|
|
@ -26,6 +26,7 @@ import EditorOptionsProvider from '@components/Contexts/Editor/EditorContext'
|
|||
import AICanvaToolkit from './AI/AICanvaToolkit'
|
||||
import EmbedObjects from '@components/Objects/Editor/Extensions/EmbedObjects/EmbedObjects'
|
||||
import Badges from '@components/Objects/Editor/Extensions/Badges/Badges'
|
||||
import Buttons from '@components/Objects/Editor/Extensions/Buttons/Buttons'
|
||||
|
||||
interface Editor {
|
||||
content: string
|
||||
|
|
@ -95,6 +96,10 @@ function Canva(props: Editor) {
|
|||
editable: isEditable,
|
||||
activity: props.activity,
|
||||
}),
|
||||
Buttons.configure({
|
||||
editable: isEditable,
|
||||
activity: props.activity,
|
||||
}),
|
||||
],
|
||||
|
||||
content: props.content,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue