Bind Enter to splitBlockKeepMarks instead of splitBlock #3

Closed
kofifus wants to merge 1 commit from patch-1 into master
kofifus commented 2017-03-01 11:23:06 +01:00 (Migrated from github.com)

As it is by far the more common situation in wysiwyg editors that marks persist after pressing enter, it makes sense for this to be the default in ProseMirror. A keymap can be used to revert Enter to use splitBlock instead.

As it is by far the more common situation in wysiwyg editors that marks persist after pressing enter, it makes sense for this to be the default in ProseMirror. A keymap can be used to revert Enter to use splitBlock instead.
marijnh commented 2017-03-01 11:24:18 +01:00 (Migrated from github.com)

I disagree, as I described in our earlier discussion. So nope, not going to happen. It's easy enough to rebind, since most real-world setups will be setting up their own custom keymap anyway.

I disagree, as I described in our earlier discussion. So nope, not going to happen. It's easy enough to rebind, since most real-world setups will be setting up their own custom keymap anyway.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
prosemirror/prosemirror-commands!3
No description provided.