Skip to content
This repository was archived by the owner on Oct 11, 2022. It is now read-only.

Commit 97393dd

Browse files
authored
Merge pull request #1 from mxstbr/fix-blockquote-behaviour
Fix blockquote exiting behaviour
2 parents bfe6546 + 40e789d commit 97393dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function checkReturnForState(editorState, ev) {
4747
newEditorState = leaveList(editorState);
4848
}
4949
if (newEditorState === editorState &&
50-
(ev.ctrlKey || ev.shiftKey || ev.metaKey || ev.altKey || /^header-/.test(type))) {
50+
(ev.ctrlKey || ev.shiftKey || ev.metaKey || ev.altKey || /^header-/.test(type) || type === 'blockquote')) {
5151
newEditorState = insertEmptyBlock(editorState);
5252
}
5353
if (newEditorState === editorState && type !== 'code-block' && /^```([\w-]+)?$/.test(text)) {

0 commit comments

Comments
 (0)