-
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.
Add pre to list of block wrappers (#21255)
* Add pre to list of block wrappers * Share the elements definition between web and native. * Make constant name all uppercase. * Rename constant name to be all uppercase * Rename elements constant to all uppercase
- Loading branch information
1 parent
fd81ac6
commit 49d79cf
Showing
3 changed files
with
30 additions
and
39 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
packages/block-editor/src/components/block-list/block-elements.js
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
const ELEMENTS = [ | ||
'p', | ||
'div', | ||
'h1', | ||
'h2', | ||
'h3', | ||
'h4', | ||
'h5', | ||
'h6', | ||
'ol', | ||
'ul', | ||
'li', | ||
'figure', | ||
'nav', | ||
'pre', | ||
'header', | ||
'section', | ||
'aside', | ||
'footer', | ||
'main', | ||
]; | ||
|
||
export default ELEMENTS; |
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
21 changes: 5 additions & 16 deletions
21
packages/block-editor/src/components/block-list/block-wrapper.native.js
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