Merge branch 'hide_commentEditor' into 'dev'
Hide comment editor See merge request discoursio/discoursio-webapp!23
This commit is contained in:
commit
124b43d667
|
@ -15,7 +15,6 @@ import Button from '../_shared/Button'
|
||||||
import { createStorage } from '@solid-primitives/storage'
|
import { createStorage } from '@solid-primitives/storage'
|
||||||
|
|
||||||
const ARTICLE_COMMENTS_PAGE_SIZE = 50
|
const ARTICLE_COMMENTS_PAGE_SIZE = 50
|
||||||
const MAX_COMMENT_LEVEL = 6
|
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
commentAuthors: Author[]
|
commentAuthors: Author[]
|
||||||
|
|
|
@ -17,7 +17,6 @@ import { customKeymap } from '../../EditorNew/prosemirror/plugins/customKeymap'
|
||||||
import { placeholder } from '../../EditorNew/prosemirror/plugins/placeholder'
|
import { placeholder } from '../../EditorNew/prosemirror/plugins/placeholder'
|
||||||
import { undo, redo, history } from 'prosemirror-history'
|
import { undo, redo, history } from 'prosemirror-history'
|
||||||
import { useSession } from '../../../context/session'
|
import { useSession } from '../../../context/session'
|
||||||
import { showModal } from '../../../stores/ui'
|
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
placeholder?: string
|
placeholder?: string
|
||||||
|
@ -51,7 +50,7 @@ const CommentEditor = (props: Props) => {
|
||||||
history(),
|
history(),
|
||||||
customKeymap(),
|
customKeymap(),
|
||||||
placeholder(props.placeholder),
|
placeholder(props.placeholder),
|
||||||
keymap({ 'Mod-z': undo, 'Mod-y': redo }),
|
keymap({ 'Mod-z': undo, 'Mod-Shift-z': undo, 'Mod-Shift-y': redo, 'Mod-y': redo }),
|
||||||
keymap(baseKeymap)
|
keymap(baseKeymap)
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue
Block a user