refactoring

This commit is contained in:
Philipp Kühn
2021-01-29 00:08:01 +01:00
parent 3039871767
commit 89deb4c615
2 changed files with 4 additions and 17 deletions

View File

@@ -57,16 +57,6 @@ export const TextAlign = Extension.create({
addKeyboardShortcuts() {
return {
// TODO: re-use only 'textAlign' attribute
// TODO: use custom splitBlock only for `this.options.types`
// Enter: () => this.editor.commands.first(({ commands }) => [
// () => commands.newlineInCode(),
// () => commands.createParagraphNear(),
// () => commands.liftEmptyBlock(),
// () => commands.splitBlock({
// withAttributes: true,
// }),
// ]),
'Mod-Shift-l': () => this.editor.commands.setTextAlign('left'),
'Mod-Shift-e': () => this.editor.commands.setTextAlign('center'),
'Mod-Shift-r': () => this.editor.commands.setTextAlign('right'),