cosmocode / dokuwiki-plugin-prosemirror

A modern WYSIWYG editor for DokuWiki
https://wysiwyg.wiki.cosmocode.de/
54 stars 20 forks source link

keymap: change to support hard-breaks #203

Open gyger opened 5 months ago

gyger commented 5 months ago

Allows for Shift-Enter to create a hard break. This follows the implementation of the prosemirror sample. https://github.com/ProseMirror/prosemirror-example-setup/blob/master/src/keymap.ts

gyger commented 5 months ago

This is a different way to implement the support for Shift+Enter for hard breaks in the editor. Similar to PR https://github.com/cosmocode/dokuwiki-plugin-prosemirror/pull/115, but this follows the implementation of the example editor.