Skip to content
Snippets Groups Projects
Commit 8e8a0a94 authored by rhenck's avatar rhenck
Browse files

[editor] Enable some shortcut expression for TextEditor

...but disable the list auto-generation for bullet and ordered lists.

#226
#369
parent 6c334d77
No related branches found
No related tags found
No related merge requests found
Pipeline #42313 passed
......@@ -28,5 +28,9 @@ export const BulletListExtension = BulletList.extend({
return commands.updateAttributes(this.name, { listStyle: newStyle });
}
};
},
addInputRules() {
return [];
}
});
......@@ -39,5 +39,9 @@ export const OrderedListExtension = OrderedList.extend({
commands.updateAttributes(this.name, { fontSize: fontSize })
)
};
},
addInputRules() {
return [];
}
});
......@@ -84,9 +84,7 @@ export class RichTextEditorComponent implements OnInit, AfterViewInit {
];
editor: Editor = new Editor({
extensions: this.defaultExtensions,
enablePasteRules: false,
enableInputRules: false
extensions: this.defaultExtensions
});
constructor(private injector: Injector) { }
......@@ -100,9 +98,7 @@ export class RichTextEditorComponent implements OnInit, AfterViewInit {
activeExtensions.push(ButtonComponentExtension(this.injector));
}
this.editor = new Editor({
extensions: activeExtensions,
enablePasteRules: false,
enableInputRules: false
extensions: activeExtensions
});
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment