fix(editor): duplicate name
Some checks failed
continuous-integration/drone/pr Build is failing

This commit is contained in:
kolaente 2023-10-22 10:50:16 +02:00
parent 2864854cd4
commit 2f3196ef86
Signed by: konrad
GPG Key ID: F40E70337AB24C9B

View File

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