mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat: add WebPreviews blocks
This commit is contained in:
parent
b1c4ddd0b7
commit
8d3ede1486
11 changed files with 482 additions and 0 deletions
|
|
@ -35,6 +35,7 @@ import UserBlock from '@components/Objects/Editor/Extensions/Users/UserBlock'
|
|||
import { getLinkExtension } from '@components/Objects/Editor/EditorConf'
|
||||
import TableOfContents from './TableOfContents'
|
||||
import { CustomHeading } from './CustomHeadingExtenstion'
|
||||
import WebPreview from '@components/Objects/Editor/Extensions/WebPreview/WebPreview'
|
||||
|
||||
interface Editor {
|
||||
content: string
|
||||
|
|
@ -131,6 +132,10 @@ function Canva(props: Editor) {
|
|||
resizable: true,
|
||||
}),
|
||||
getLinkExtension(),
|
||||
WebPreview.configure({
|
||||
editable: true,
|
||||
activity: props.activity,
|
||||
}),
|
||||
TableRow,
|
||||
TableHeader,
|
||||
TableCell,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue