Commit c47e155
Fix inserting button block when pressing enter in a block with bound
* Add tabindex 0 to all disabled elements in rich text
* Insert block when use enter in disabled rich text
* Take default block into account
* Add e2e tests when pressing enter in bound blocks
* Revert initial implementation
* Use `insertAfterBlock` instead of `insertDefaultBlock`.
* Remove unnecessary `insertDefaultBlock`
* Destructure innerBlocks array in tests
Co-authored-by: Greg Ziółkowski <grzegorz@gziolo.pl>
* Prettify tests
* Remove unnecessary select in tests
* Destructuring blocks in tests
* Revert "Remove unnecessary select in tests"
This reverts commit 63ffff87ca048a218567772710dcc45affcfd2aa.
* Remove unnecessary select in tests
* Adapt tests to latest changes
---------
Co-authored-by: Greg Ziółkowski <grzegorz@gziolo.pl>text attribute (#59361)1 parent 8c77df8 commit c47e155
2 files changed
Lines changed: 184 additions & 69 deletions
File tree
- packages/block-editor/src/components/block-list/use-block-props
- test/e2e/specs/editor/various
Lines changed: 3 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
| 60 | + | |
65 | 61 | | |
66 | 62 | | |
67 | 63 | | |
| |||
90 | 86 | | |
91 | 87 | | |
92 | 88 | | |
93 | | - | |
| 89 | + | |
94 | 90 | | |
95 | 91 | | |
96 | 92 | | |
| |||
0 commit comments