-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Split formatted text on triple Enter (#53354)
* feat: Split formatted text on triple enter It is difficult to exit a formatted text block, e.g. Verse, using only the keyboard. This splits the block when pressing enter and the two previous characters are line breaks. * feat: Split Code block on triple enter Apply Verse and Preformatted block behavior to the Code block. However, this applied code does not currently run as Code relies upon the older version of `PlainText`. * feat: Enable PlainText v2 for the Code block Improve splitting and merging block functionality by relying upon the more robust `RichText` component. Merging blocks into Code does not always work as expected, e.g. a Paragraph into a Code block fails. * fix: RichText applies direction-specific padding Certain contexts apply different padding for different directions, e.g. horizontal vs vertical, left vs right. * Revert "fix: RichText applies direction-specific padding" This reverts commit 6205651. * Revert "feat: Enable PlainText v2 for the Code block" This reverts commit 37d3fa3. * test: Split formatted text block on triple Enter * docs: Add change log entry
- Loading branch information
Showing
5 changed files
with
110 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8b09de4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Flaky tests detected in 8b09de4.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.
🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/6420056685
📝 Reported issues:
/test/e2e/specs/editor/various/multi-block-selection.spec.js