I have searched for a way to change the default behavior for Enter to be the same as Shift + Enter. To get instead of new
Is it possible to change to this behavior somehow?
I have searched for a way to change the default behavior for Enter to be the same as Shift + Enter. To get instead of new
Is it possible to change to this behavior somehow?
this.editor = new Editor({
content: this.modelValue,
extensions: [
StarterKit,
HardBreak.extend({
addKeyboardShortcuts () {
return {
Enter: () => this.editor.commands.setHardBreak()
}
}
})
]
});