mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-06 19:01:44 +01:00
c421e9b34a
- First pass at adding the site editor from the Gutenberg plugin to wp-admin/site-editor.php. - Adds miscellaneous PHP changes from Gutenberg 10.1 - 11.9. Follows [52042]. See #54337. Props youknowriad, aristath, hellofromtonya, gziolo. Built from https://develop.svn.wordpress.org/trunk@52069 git-svn-id: http://core.svn.wordpress.org/trunk@51661 1a063a9b-81f0-0310-95a4-ce76da25c4cd
66 lines
1.1 KiB
JSON
66 lines
1.1 KiB
JSON
{
|
|
"apiVersion": 2,
|
|
"name": "core/navigation-submenu",
|
|
"title": "Submenu",
|
|
"category": "design",
|
|
"parent": [
|
|
"core/navigation"
|
|
],
|
|
"description": "Add a submenu to your navigation.",
|
|
"textdomain": "default",
|
|
"attributes": {
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"rel": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "number"
|
|
},
|
|
"opensInNewTab": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"kind": {
|
|
"type": "string"
|
|
},
|
|
"isTopLevelItem": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"usesContext": [
|
|
"textColor",
|
|
"customTextColor",
|
|
"backgroundColor",
|
|
"customBackgroundColor",
|
|
"overlayTextColor",
|
|
"customOverlayTextColor",
|
|
"overlayBackgroundColor",
|
|
"customOverlayBackgroundColor",
|
|
"fontSize",
|
|
"customFontSize",
|
|
"showSubmenuIcon",
|
|
"openSubmenusOnClick",
|
|
"style"
|
|
],
|
|
"supports": {
|
|
"reusable": false,
|
|
"html": false
|
|
},
|
|
"editorStyle": "wp-block-navigation-submenu-editor",
|
|
"style": "wp-block-navigation-submenu"
|
|
}
|