refactoring
This commit is contained in:
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user