Change enter to break line instead of new paragraph in tiptap

Viewed 572

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?

1 Answers
 this.editor = new Editor({
  content: this.modelValue,
  extensions: [
    StarterKit,
    HardBreak.extend({
      addKeyboardShortcuts () {
        return {
          Enter: () => this.editor.commands.setHardBreak()
        }
      }
    })
  ]
});
Related