fix(editor): duplicate name
This commit is contained in:
parent
2864854cd4
commit
2f3196ef86
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user