Conversation
8884781 to
b625b36
Compare
test/e2e/specs/writing-flow.test.js
Outdated
| await page.keyboard.press( 'ArrowLeft' ); | ||
| await page.keyboard.down( 'Shift' ); | ||
| await page.keyboard.press( 'Enter' ); | ||
| await page.keyboard.up( 'Shift' ); |
There was a problem hiding this comment.
We have a very handy helper: pressWithModifier( 'Shift', 'Enter' )
There was a problem hiding this comment.
This doesn't seem to work for me.
There was a problem hiding this comment.
Why Unicode 2028 instead of a plain (ASCII-level) line break?
There was a problem hiding this comment.
Because we're using that to delimit lines in multiline values. We could probably benefit from a helper or a constant...
There was a problem hiding this comment.
And \n are used for single line breaks which convert to <br> elements.
There was a problem hiding this comment.
That's fair, but let's add a comment for it.
Yes, noticed this with Jorge the other day, will fix separately. |
5576929 to
8e7a242
Compare
c7a23e3 to
047f607
Compare

Description
Fixes an issue where inserting like breaks would throw an error. This either happens when pressing shift+enter in a rich text field that can be split, like a paragraph, or when pressing enter in a rich text field that cannot be split, like a caption.
How has this been tested?
Press enter in e.g. a caption. A line break should be added.
Screenshots
Types of changes
Checklist: