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