mirror of
https://github.com/10h30/wp-strava.git
synced 2026-07-15 20:53:49 +09:00
block.json refinements
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
{
|
||||
"apiVersion": 2,
|
||||
"name": "wp-strava/activity",
|
||||
"title": "Strava Activity",
|
||||
"category": "embed",
|
||||
@@ -25,7 +24,7 @@
|
||||
"default": null
|
||||
}
|
||||
},
|
||||
"editorScript": "wp-strava-block",
|
||||
"editorStyle": "wp-strava-block-editor",
|
||||
"style": "wp-strava-block"
|
||||
"editorScript": "file:../../../build/index.js",
|
||||
"editorStyle": "file:../../../build/editor.css",
|
||||
"style": "file:../../../build/style.css"
|
||||
}
|
||||
|
||||
@@ -6,7 +6,4 @@ import metadata from './block.json';
|
||||
metadata.edit = edit;
|
||||
metadata.save = () => null;
|
||||
|
||||
// Leaving this in place causes problems with the toolbar.
|
||||
delete metadata.apiVersion;
|
||||
|
||||
registerBlockType( metadata.name, metadata );
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
{
|
||||
"apiVersion": 2,
|
||||
"name": "wp-strava/route",
|
||||
"title": "Strava Route",
|
||||
"category": "embed",
|
||||
@@ -25,7 +24,7 @@
|
||||
"default": null
|
||||
}
|
||||
},
|
||||
"editorScript": "wp-strava-block",
|
||||
"editorStyle": "wp-strava-block-editor",
|
||||
"style": "wp-strava-block"
|
||||
"editorScript": "file:../../../build/index.js",
|
||||
"editorStyle": "file:../../../build/editor.css",
|
||||
"style": "file:../../../build/style.css"
|
||||
}
|
||||
|
||||
@@ -6,7 +6,4 @@ import metadata from './block.json';
|
||||
metadata.edit = edit;
|
||||
metadata.save = () => null;
|
||||
|
||||
// Leaving this in place causes problems with the toolbar.
|
||||
delete metadata.apiVersion;
|
||||
|
||||
registerBlockType( metadata.name, metadata );
|
||||
|
||||
Reference in New Issue
Block a user