fix: suppression raccourcis clavier inutiles — slash menu uniquement
Some checks failed
CI / Lint, Unit Tests & Build (push) Failing after 1m4s
CI / Deploy production (on server) (push) Has been skipped

Les blocs (toggle, callout, outline, columns, math) n'ont plus de
raccourcis clavier. Insertion via le menu / uniquement, comme Notion.
Plus de confusion pour l'utilisateur.
This commit is contained in:
Antigravity
2026-06-20 15:55:15 +00:00
parent ee70e74bf5
commit af3f130549
5 changed files with 1 additions and 49 deletions

View File

@@ -83,19 +83,6 @@ export const ColumnsExtension = Node.create({
},
}
},
addKeyboardShortcuts() {
return {
'Mod-Alt-L': () => this.editor.commands.insertContent({
type: this.name,
attrs: { cols: 2 },
content: [
{ type: 'column', attrs: { index: 0 }, content: [{ type: 'paragraph' }] },
{ type: 'column', attrs: { index: 1 }, content: [{ type: 'paragraph' }] },
],
}),
}
},
})
function addOrDeleteCol(state: EditorState, dispatch?: (tr: Transaction) => void, type?: 'addBefore' | 'addAfter' | 'delete'): boolean {