Skip to content

Commit 1499580

Browse files
Merge pull request #6508 from nextcloud/backport/6507/stable30
[stable30] Fix(plaintext): multiple linebreaks at end
2 parents af20a96 + b1b3e4c commit 1499580

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/EditorFactory.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,14 @@ const createEditor = ({ language, onCreate = () => {}, onUpdate = () => {}, exte
5151
FocusTrap,
5252
]
5353
} else {
54-
defaultExtensions = [PlainText, CodeBlockLowlight.configure({ lowlight, defaultLanguage: language })]
54+
defaultExtensions = [
55+
PlainText,
56+
CodeBlockLowlight.configure({
57+
lowlight,
58+
defaultLanguage: language,
59+
exitOnTripleEnter: false,
60+
}),
61+
]
5562
}
5663

5764
return new Editor({

0 commit comments

Comments
 (0)