1
0

fix(editor): duplicate name

This commit is contained in:
kolaente 2023-10-22 10:50:16 +02:00
parent 2864854cd4
commit 2f3196ef86
No known key found for this signature in database
GPG Key ID: F40E70337AB24C9B

View File

@ -293,7 +293,9 @@ const editor = useEditor({
Bold, Bold,
BulletList, BulletList,
Code, Code,
CodeBlock, CodeBlockLowlight.configure({
lowlight,
}),
Document, Document,
Dropcursor, Dropcursor,
Gapcursor, Gapcursor,
@ -350,13 +352,9 @@ const editor = useEditor({
nested: true, nested: true,
}), }),
CodeBlockLowlight.configure({ Commands
lowlight, .configure({suggestion: suggestionSetup(t)})
}), .extend({name: 'slashMenuCommands'}),
Commands.configure({
suggestion: suggestionSetup(t),
}),
BubbleMenu, BubbleMenu,
], ],
onUpdate: () => { onUpdate: () => {
@ -480,6 +478,7 @@ function handleImagePaste(event) {
} }
}) })
} }
// See https://github.com/github/hotkey/discussions/85#discussioncomment-5214660 // See https://github.com/github/hotkey/discussions/85#discussioncomment-5214660
function setFocusToEditor(event) { function setFocusToEditor(event) {
const hotkeyString = eventToHotkeyString(event) const hotkeyString = eventToHotkeyString(event)