We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c9f58f6 commit a236d86Copy full SHA for a236d86
1 file changed
src/tests/plaintext.spec.js
@@ -79,4 +79,17 @@ describe('html as plain text', () => {
79
expect(plaintextThroughEditor('"\';&.-#><')).toBe('"\';&.-#><')
80
expect(plaintextThroughEditor(xssFuzzVectors)).toBe(xssFuzzVectors)
81
})
82
+} )
83
+
84
+describe('regression tests', () => {
85
+ test('tripple enter creates new lines at end (#6507)', () => {
86
+ const tiptap = createEditor({
87
+ enableRichEditing: false
88
+ })
89
+ tiptap.commands.enter()
90
91
92
+ expect(serializePlainText(tiptap))
93
+ .toEqual("\n\n\n")
94
95
0 commit comments