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
|
|
@ -50,6 +50,7 @@ import ActiveAvatars from './ActiveAvatars'
|
|||
import { getUriWithOrg } from '@services/config/config'
|
||||
import EmbedObjects from './Extensions/EmbedObjects/EmbedObjects'
|
||||
import Badges from './Extensions/Badges/Badges'
|
||||
import Buttons from './Extensions/Buttons/Buttons'
|
||||
|
||||
interface Editor {
|
||||
content: string
|
||||
|
|
@ -143,6 +144,10 @@ function Editor(props: Editor) {
|
|||
editable: true,
|
||||
activity: props.activity,
|
||||
}),
|
||||
Buttons.configure({
|
||||
editable: true,
|
||||
activity: props.activity,
|
||||
}),
|
||||
|
||||
// Add Collaboration and CollaborationCursor only if isCollabEnabledOnThisOrg is true
|
||||
...(props.isCollabEnabledOnThisOrg ? [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue