Hide comment editor

This commit is contained in:
ilia tapazukk 2023-02-13 14:12:49 +00:00
parent e5e9541b28
commit edd13682b1
2 changed files with 1 additions and 3 deletions

View File

@ -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[]

View File

@ -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)
]
})