Hide comment editor
This commit is contained in:
parent
e5e9541b28
commit
edd13682b1
|
@ -15,7 +15,6 @@ import Button from '../_shared/Button'
|
|||
import { createStorage } from '@solid-primitives/storage'
|
||||
|
||||
const ARTICLE_COMMENTS_PAGE_SIZE = 50
|
||||
const MAX_COMMENT_LEVEL = 6
|
||||
|
||||
type Props = {
|
||||
commentAuthors: Author[]
|
||||
|
|
|
@ -17,7 +17,6 @@ import { customKeymap } from '../../EditorNew/prosemirror/plugins/customKeymap'
|
|||
import { placeholder } from '../../EditorNew/prosemirror/plugins/placeholder'
|
||||
import { undo, redo, history } from 'prosemirror-history'
|
||||
import { useSession } from '../../../context/session'
|
||||
import { showModal } from '../../../stores/ui'
|
||||
|
||||
type Props = {
|
||||
placeholder?: string
|
||||
|
@ -51,7 +50,7 @@ const CommentEditor = (props: Props) => {
|
|||
history(),
|
||||
customKeymap(),
|
||||
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)
|
||||
]
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue
Block a user