Skip to content
This repository was archived by the owner on Jun 19, 2025. It is now read-only.

Conversation

@gziolo
Copy link
Member

@gziolo gziolo commented May 31, 2019

It follows-up changes added to the block tutorial in Gutenberg added by @truongwp in WordPress/gutenberg#15717.

diff --git a/docs/designers-developers/developers/tutorials/block-tutorial/writing-your-first-block-type.md b/docs/designers-developers/developers/tutorials/block-tutorial/writing-your-first-block-type.md
index c959b4cd5ae..a4ac0f7a33d 100644
--- a/docs/designers-developers/developers/tutorials/block-tutorial/writing-your-first-block-type.md
+++ b/docs/designers-developers/developers/tutorials/block-tutorial/writing-your-first-block-type.md
@@ -90,16 +90,16 @@ registerBlockType( 'gutenberg-examples/example-01-basic-esnext', {
 	icon: 'universal-access-alt',
 	category: 'layout',
 	edit() {
-		return <div style={ blockStyle }>Basic example with JSX! (editor)</div>;
+		return <div style={ blockStyle }>Hello World, step 1 (from the editor).</div>;
 	},
 	save() {
-		return <div style={ blockStyle }>Basic example with JSX! (front)</div>;
+		return <div style={ blockStyle }>Hello World, step 1 (from the frontend).</div>;
 	},
 } );

It follows-up changes added to the block tutorial in Gutenberg added by @truongwp in WordPress/gutenberg#15717.

```diff
diff --git a/docs/designers-developers/developers/tutorials/block-tutorial/writing-your-first-block-type.md b/docs/designers-developers/developers/tutorials/block-tutorial/writing-your-first-block-type.md
index c959b4cd5ae..a4ac0f7a33d 100644
--- a/docs/designers-developers/developers/tutorials/block-tutorial/writing-your-first-block-type.md
+++ b/docs/designers-developers/developers/tutorials/block-tutorial/writing-your-first-block-type.md
@@ -90,16 +90,16 @@ registerBlockType( 'gutenberg-examples/example-01-basic-esnext', {
 	icon: 'universal-access-alt',
 	category: 'layout',
 	edit() {
-		return <div style={ blockStyle }>Basic example with JSX! (editor)</div>;
+		return <div style={ blockStyle }>Hello World, step 1 (from the editor).</div>;
 	},
 	save() {
-		return <div style={ blockStyle }>Basic example with JSX! (front)</div>;
+		return <div style={ blockStyle }>Hello World, step 1 (from the frontend).</div>;
 	},
 } );
 ```
 {% end %}
 
-_By now you should be able to see `Hello editor` in the admin side and `Hello saved content` on the frontend side._
+_By now you should be able to see `Hello World, step 1 (from the editor).` in the admin side and `Hello World, step 1 (from the frontend).` on the frontend side._
 
 Once a block is registered, you should immediately see that it becomes available as an option in the editor inserter dialog, using values from `title`, `icon`, and `category` to organize its display. You can choose an icon from any included in the built-in [Dashicons icon set](https://developer.wordpress.org/resource/dashicons/), or provide a [custom svg element](/docs/designers-developers/developers/block-api/block-registration.md#icon-optional).
 ```
@gziolo gziolo requested a review from talldan May 31, 2019 06:32
@gziolo gziolo merged commit cac3047 into master May 31, 2019
@gziolo gziolo deleted the docs/gutenberg-sync-example-1 branch May 31, 2019 06:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants