Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
{
id: 63,
date: "2020-11-05T22:17:57",
date_gmt: "2020-11-05T22:17:57",
guid: {
rendered: "http://wpdev.localhost/?p=63"
},
modified: "2020-11-05T22:17:57",
modified_gmt: "2020-11-05T22:17:57",
slug: "welcome-to-the-gutenberg-editor",
status: "publish",
type: "post",
link: "http://wpdev.localhost/2020/11/05/welcome-to-the-gutenberg-editor/",
title: {
rendered: "Welcome to the Gutenberg Editor"
},
content: {
rendered: " <div class="wp-block-cover has-background-dim alignwide" style="background-image:url(https://cldup.com/Fz-ASbo2s3.jpg)"><div class="wp-block-cover__inner-container"> <p class="has-text-align-center has-large-font-size">Of Mountains &amp; Printing Presses</p> </div></div> <p>The goal of this new editor is to make adding rich content to WordPress simple and enjoyable. This whole post is composed of <em>pieces of content</em>—somewhat similar to LEGO bricks—that you can move around and interact with. Move your cursor around and you’ll notice the different blocks light up with outlines and arrows. Press the arrows to reposition blocks quickly, without fearing about losing things in the process of copying and pasting.</p> <p>What you are reading now is a <strong>text block</strong> the most basic block of all. The text block has its own controls to be moved freely around the post&#8230;</p> <p class="has-text-align-right">&#8230; like this one, which is right aligned.</p> <p>Headings are separate blocks as well, which helps with the outline and organization of your content.</p> <h2>A Picture is Worth a Thousand Words</h2> <p>Handling images and media with the utmost care is a primary focus of the new editor. Hopefully, you’ll find aspects of adding captions or going full-width with your pictures much easier and robust than before.</p> <div class="wp-block-image"><figure class="aligncenter"><img src="https://cldup.com/cXyG__fTLN.jpg" alt="Beautiful landscape"/><figcaption>If your theme supports it, you’ll see the &#8220;wide&#8221; button on the image toolbar. Give it a try.</figcaption></figure></div> <p>Try selecting and removing or editing the caption, now you don’t have to be careful about selecting the image or other text by mistake and ruining the presentation.</p> <h2>The <em>Inserter</em> Tool</h2> <p>Imagine everything that WordPress can do is available to you quickly and in the same place on the interface. No need to figure out HTML tags, classes, or remember complicated shortcode syntax. That’s the spirit behind the inserter—the <code>(+)</code> button you’ll see around the editor—which allows you to browse all available content blocks and add them into your post. Plugins and themes are able to register their own, opening up all sort of possibilities for rich editing and publishing.</p> <p>Go give it a try, you may discover things WordPress can already add into your posts that you didn’t know about. Here’s a short list of what you can currently find there:</p> <ul><li>Text &amp; Headings</li><li>Images &amp; Videos</li><li>Galleries</li><li>Embeds, like YouTube, Tweets, or other WordPress posts.</li><li>Layout blocks, like Buttons, Hero Images, Separators, etc.</li><li>And <em>Lists</em> like this one of course 🙂</li></ul> <hr class="wp-block-separator"/> <h2>Visual Editing</h2> <p>A huge benefit of blocks is that you can edit them in place and manipulate your content directly. Instead of having fields for editing things like the source of a quote, or the text of a button, you can directly change the content. Try editing the following quote:</p> <blockquote class="wp-block-quote"><p>The editor will endeavor to create a new page and post building experience that makes writing rich posts effortless, and has “blocks” to make it easy what today might take shortcodes, custom HTML, or “mystery meat” embed discovery.</p><cite>Matt Mullenweg, 2017</cite></blockquote> <p>The information corresponding to the source of the quote is a separate text field, similar to captions under images, so the structure of the quote is protected even if you select, modify, or remove the source. It’s always easy to add it back.</p> <p>Blocks can be anything you need. For instance, you may want to add a subdued quote as part of the composition of your text, or you may prefer to display a giant stylized one. All of these options are available in the inserter.</p> <figure class="wp-block-gallery columns-2 is-cropped"><ul class="blocks-gallery-grid"><li class="blocks-gallery-item"><figure><img src="https://cldup.com/n0g6ME5VKC.jpg" alt=""/></figure></li><li class="blocks-gallery-item"><figure><img src="https://cldup.com/ZjESfxPI3R.jpg" alt=""/></figure></li><li class="blocks-gallery-item"><figure><img src="https://cldup.com/EKNF8xD2UM.jpg" alt=""/></figure></li></ul></figure> <p>You can change the amount of columns in your galleries by dragging a slider in the block inspector in the sidebar.</p> <h2>Media Rich</h2> <p>If you combine the new <strong>wide</strong> and <strong>full-wide</strong> alignments with galleries, you can create a very media rich layout, very quickly:</p> <figure class="wp-block-image alignfull"><img src="https://cldup.com/8lhI-gKnI2.jpg" alt="Accessibility is important — don’t forget image alt attribute"/></figure> <p>Sure, the full-wide image can be pretty big. But sometimes the image is worth it.</p> <figure class="wp-block-gallery alignwide columns-2 is-cropped"><ul class="blocks-gallery-grid"><li class="blocks-gallery-item"><figure><img src="https://cldup.com/_rSwtEeDGD.jpg" alt=""/></figure></li><li class="blocks-gallery-item"><figure><img src="https://cldup.com/L-cC3qX2DN.jpg" alt=""/></figure></li></ul></figure> <p>The above is a gallery with just two images. It’s an easier way to create visually appealing layouts, without having to deal with floats. You can also easily convert the gallery back to individual images again, by using the block switcher.</p> <p>Any block can opt into these alignments. The embed block has them also, and is responsive out of the box:</p> <figure class="wp-block-embed alignwide is-type-video is-provider-vimeo wp-block-embed-vimeo wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper"> <iframe title="The Mountain" src="https://player.vimeo.com/video/22439234?dnt=1&amp;app_id=122963" width="750" height="422" frameborder="0" allow="autoplay; fullscreen" allowfullscreen></iframe> </div></figure> <p>You can build any block you like, static or dynamic, decorative or plain. Here’s a pullquote block:</p> <figure class="wp-block-pullquote"><blockquote><p>Code is Poetry</p><cite>The WordPress community</cite></blockquote></figure> <p class="has-text-align-center"> <em> If you want to learn more about how to build additional blocks, or if you are interested in helping with the project, head over to the <a href="https://github.com/WordPress/gutenberg">GitHub repository</a>. </em> </p> <div class="wp-block-button aligncenter"><a class="wp-block-button__link" href="https://github.com/WordPress/gutenberg">Help build Gutenberg</a></div> <hr class="wp-block-separator"/> <p class="has-text-align-center">Thanks for testing Gutenberg!</p> <p class="has-text-align-center">👋</p> ",
protected: false,
blocks: [
{
blockName: "core/cover",
attrs: {
url: "https://cldup.com/Fz-ASbo2s3.jpg",
className: "alignwide"
},
innerHTML: " <div class="wp-block-cover has-background-dim alignwide" style="background-image:url(https://cldup.com/Fz-ASbo2s3.jpg)"><div class="wp-block-cover__inner-container"></div></div> ",
innerBlocks: [
{
blockName: "core/paragraph",
attrs: {
align: "center",
placeholder: "Write title…",
fontSize: "large"
},
innerBlocks: [ ],
innerHTML: " <p class="has-text-align-center has-large-font-size">Of Mountains &amp; Printing Presses</p> ",
innerContent: [
" <p class="has-text-align-center has-large-font-size">Of Mountains &amp; Printing Presses</p> "
]
}
],
innerContent: [
" <div class="wp-block-cover has-background-dim alignwide" style="background-image:url(https://cldup.com/Fz-ASbo2s3.jpg)"><div class="wp-block-cover__inner-container">",
null,
"</div></div> "
]
},
{
blockName: "core/cover",
attrs: [ ],
innerHTML: " ",
innerBlocks: [ ],
innerContent: [
" "
]
},
{
blockName: "core/paragraph",
attrs: [ ],
innerHTML: " <p>The goal of this new editor is to make adding rich content to WordPress simple and enjoyable. This whole post is composed of <em>pieces of content</em>—somewhat similar to LEGO bricks—that you can move around and interact with. Move your cursor around and you’ll notice the different blocks light up with outlines and arrows. Press the arrows to reposition blocks quickly, without fearing about losing things in the process of copying and pasting.</p> ",
innerBlocks: [ ],
innerContent: [
" <p>The goal of this new editor is to make adding rich content to WordPress simple and enjoyable. This whole post is composed of <em>pieces of content</em>—somewhat similar to LEGO bricks—that you can move around and interact with. Move your cursor around and you’ll notice the different blocks light up with outlines and arrows. Press the arrows to reposition blocks quickly, without fearing about losing things in the process of copying and pasting.</p> "
]
},
{
blockName: "core/paragraph",
attrs: [ ],
innerHTML: " ",
innerBlocks: [ ],
innerContent: [
" "
]
},
{
blockName: "core/paragraph",
attrs: [ ],
innerHTML: " <p>What you are reading now is a <strong>text block</strong> the most basic block of all. The text block has its own controls to be moved freely around the post...</p> ",
innerBlocks: [ ],
innerContent: [
" <p>What you are reading now is a <strong>text block</strong> the most basic block of all. The text block has its own controls to be moved freely around the post...</p> "
]
},
{
blockName: "core/paragraph",
attrs: [ ],
innerHTML: " ",
innerBlocks: [ ],
innerContent: [
" "
]
},
{
blockName: "core/paragraph",
attrs: {
align: "right"
},
innerHTML: " <p class="has-text-align-right">... like this one, which is right aligned.</p> ",
innerBlocks: [ ],
innerContent: [
" <p class="has-text-align-right">... like this one, which is right aligned.</p> "
]
},
{
blockName: "core/paragraph",
attrs: [ ],
innerHTML: " ",
innerBlocks: [ ],
innerContent: [
" "
]
},
{
blockName: "core/paragraph",
attrs: [ ],
innerHTML: " <p>Headings are separate blocks as well, which helps with the outline and organization of your content.</p> ",
innerBlocks: [ ],
innerContent: [
" <p>Headings are separate blocks as well, which helps with the outline and organization of your content.</p> "
]
},
{
blockName: "core/paragraph",
attrs: [ ],
innerHTML: " ",
innerBlocks: [ ],
innerContent: [
" "
]
},
{
blockName: "core/heading",
attrs: [ ],
innerHTML: " <h2>A Picture is Worth a Thousand Words</h2> ",
innerBlocks: [ ],
innerContent: [
" <h2>A Picture is Worth a Thousand Words</h2> "
]
},
{
blockName: "core/heading",
attrs: [ ],
innerHTML: " ",
innerBlocks: [ ],
innerContent: [
" "
]
},
{
blockName: "core/paragraph",
attrs: [ ],
innerHTML: " <p>Handling images and media with the utmost care is a primary focus of the new editor. Hopefully, you’ll find aspects of adding captions or going full-width with your pictures much easier and robust than before.</p> ",
innerBlocks: [ ],
innerContent: [
" <p>Handling images and media with the utmost care is a primary focus of the new editor. Hopefully, you’ll find aspects of adding captions or going full-width with your pictures much easier and robust than before.</p> "
]
},
{
blockName: "core/paragraph",
attrs: [ ],
innerHTML: " ",
innerBlocks: [ ],
innerContent: [
" "
]
},
{
blockName: "core/image",
attrs: {
align: "center"
},
innerHTML: " <div class="wp-block-image"><figure class="aligncenter"><img src="https://cldup.com/cXyG__fTLN.jpg" alt="Beautiful landscape"/><figcaption>If your theme supports it, you’ll see the "wide" button on the image toolbar. Give it a try.</figcaption></figure></div> ",
innerBlocks: [ ],
innerContent: [
" <div class="wp-block-image"><figure class="aligncenter"><img src="https://cldup.com/cXyG__fTLN.jpg" alt="Beautiful landscape"/><figcaption>If your theme supports it, you’ll see the "wide" button on the image toolbar. Give it a try.</figcaption></figure></div> "
]
},
{
blockName: "core/image",
attrs: [ ],
innerHTML: " ",
innerBlocks: [ ],
innerContent: [
" "
]
},
{
blockName: "core/paragraph",
attrs: [ ],
innerHTML: " <p>Try selecting and removing or editing the caption, now you don’t have to be careful about selecting the image or other text by mistake and ruining the presentation.</p> ",
innerBlocks: [ ],
innerContent: [
" <p>Try selecting and removing or editing the caption, now you don’t have to be careful about selecting the image or other text by mistake and ruining the presentation.</p> "
]
},
{
blockName: "core/paragraph",
attrs: [ ],
innerHTML: " ",
innerBlocks: [ ],
innerContent: [
" "
]
},
{
blockName: "core/heading",
attrs: [ ],
innerHTML: " <h2>The <em>Inserter</em> Tool</h2> ",
innerBlocks: [ ],
innerContent: [
" <h2>The <em>Inserter</em> Tool</h2> "
]
},
{
blockName: "core/heading",
attrs: [ ],
innerHTML: " ",
innerBlocks: [ ],
innerContent: [
" "
]
},
{
blockName: "core/paragraph",
attrs: [ ],
innerHTML: " <p>Imagine everything that WordPress can do is available to you quickly and in the same place on the interface. No need to figure out HTML tags, classes, or remember complicated shortcode syntax. That’s the spirit behind the inserter—the <code>(+)</code> button you’ll see around the editor—which allows you to browse all available content blocks and add them into your post. Plugins and themes are able to register their own, opening up all sort of possibilities for rich editing and publishing.</p> ",
innerBlocks: [ ],
innerContent: [
" <p>Imagine everything that WordPress can do is available to you quickly and in the same place on the interface. No need to figure out HTML tags, classes, or remember complicated shortcode syntax. That’s the spirit behind the inserter—the <code>(+)</code> button you’ll see around the editor—which allows you to browse all available content blocks and add them into your post. Plugins and themes are able to register their own, opening up all sort of possibilities for rich editing and publishing.</p> "
]
},
{
blockName: "core/paragraph",
attrs: [ ],
innerHTML: " ",
innerBlocks: [ ],
innerContent: [
" "
]
},
{
blockName: "core/paragraph",
attrs: [ ],
innerHTML: " <p>Go give it a try, you may discover things WordPress can already add into your posts that you didn’t know about. Here’s a short list of what you can currently find there:</p> ",
innerBlocks: [ ],
innerContent: [
" <p>Go give it a try, you may discover things WordPress can already add into your posts that you didn’t know about. Here’s a short list of what you can currently find there:</p> "
]
},
{
blockName: "core/paragraph",
attrs: [ ],
innerHTML: " ",
innerBlocks: [ ],
innerContent: [
" "
]
},
{
blockName: "core/list",
attrs: [ ],
innerHTML: " <ul><li>Text &amp; Headings</li><li>Images &amp; Videos</li><li>Galleries</li><li>Embeds, like YouTube, Tweets, or other WordPress posts.</li><li>Layout blocks, like Buttons, Hero Images, Separators, etc.</li><li>And <em>Lists</em> like this one of course :)</li></ul> ",
innerBlocks: [ ],
innerContent: [
" <ul><li>Text &amp; Headings</li><li>Images &amp; Videos</li><li>Galleries</li><li>Embeds, like YouTube, Tweets, or other WordPress posts.</li><li>Layout blocks, like Buttons, Hero Images, Separators, etc.</li><li>And <em>Lists</em> like this one of course :)</li></ul> "
]
},
{
blockName: "core/list",
attrs: [ ],
innerHTML: " ",
innerBlocks: [ ],
innerContent: [
" "
]
},
{
blockName: "core/separator",
attrs: [ ],
innerHTML: " <hr class="wp-block-separator"/> ",
innerBlocks: [ ],
innerContent: [
" <hr class="wp-block-separator"/> "
]
},
{
blockName: "core/separator",
attrs: [ ],
innerHTML: " ",
innerBlocks: [ ],
innerContent: [
" "
]
},
{
blockName: "core/heading",
attrs: [ ],
innerHTML: " <h2>Visual Editing</h2> ",
innerBlocks: [ ],
innerContent: [
" <h2>Visual Editing</h2> "
]
},
{
blockName: "core/heading",
attrs: [ ],
innerHTML: " ",
innerBlocks: [ ],
innerContent: [
" "
]
},
{
blockName: "core/paragraph",
attrs: [ ],
innerHTML: " <p>A huge benefit of blocks is that you can edit them in place and manipulate your content directly. Instead of having fields for editing things like the source of a quote, or the text of a button, you can directly change the content. Try editing the following quote:</p> ",
innerBlocks: [ ],
innerContent: [
" <p>A huge benefit of blocks is that you can edit them in place and manipulate your content directly. Instead of having fields for editing things like the source of a quote, or the text of a button, you can directly change the content. Try editing the following quote:</p> "
]
},
{
blockName: "core/paragraph",
attrs: [ ],
innerHTML: " ",
innerBlocks: [ ],
innerContent: [
" "
]
},
{
blockName: "core/quote",
attrs: [ ],
innerHTML: " <blockquote class="wp-block-quote"><p>The editor will endeavor to create a new page and post building experience that makes writing rich posts effortless, and has “blocks” to make it easy what today might take shortcodes, custom HTML, or “mystery meat” embed discovery.</p><cite>Matt Mullenweg, 2017</cite></blockquote> ",
innerBlocks: [ ],
innerContent: [
" <blockquote class="wp-block-quote"><p>The editor will endeavor to create a new page and post building experience that makes writing rich posts effortless, and has “blocks” to make it easy what today might take shortcodes, custom HTML, or “mystery meat” embed discovery.</p><cite>Matt Mullenweg, 2017</cite></blockquote> "
]
},
{
blockName: "core/quote",
attrs: [ ],
innerHTML: " ",
innerBlocks: [ ],
innerContent: [
" "
]
},
{
blockName: "core/paragraph",
attrs: [ ],
innerHTML: " <p>The information corresponding to the source of the quote is a separate text field, similar to captions under images, so the structure of the quote is protected even if you select, modify, or remove the source. It’s always easy to add it back.</p> ",
innerBlocks: [ ],
innerContent: [
" <p>The information corresponding to the source of the quote is a separate text field, similar to captions under images, so the structure of the quote is protected even if you select, modify, or remove the source. It’s always easy to add it back.</p> "
]
},
{
blockName: "core/paragraph",
attrs: [ ],
innerHTML: " ",
innerBlocks: [ ],
innerContent: [
" "
]
},
{
blockName: "core/paragraph",
attrs: [ ],
innerHTML: " <p>Blocks can be anything you need. For instance, you may want to add a subdued quote as part of the composition of your text, or you may prefer to display a giant stylized one. All of these options are available in the inserter.</p> ",
innerBlocks: [ ],
innerContent: [
" <p>Blocks can be anything you need. For instance, you may want to add a subdued quote as part of the composition of your text, or you may prefer to display a giant stylized one. All of these options are available in the inserter.</p> "
]
},
{
blockName: "core/paragraph",
attrs: [ ],
innerHTML: " ",
innerBlocks: [ ],
innerContent: [
" "
]
},
{
blockName: "core/gallery",
attrs: {
ids: [
null,
null,
null
],
columns: 2,
linkTo: "none"
},
innerHTML: " <figure class="wp-block-gallery columns-2 is-cropped"><ul class="blocks-gallery-grid"><li class="blocks-gallery-item"><figure><img src="https://cldup.com/n0g6ME5VKC.jpg" alt=""/></figure></li><li class="blocks-gallery-item"><figure><img src="https://cldup.com/ZjESfxPI3R.jpg" alt=""/></figure></li><li class="blocks-gallery-item"><figure><img src="https://cldup.com/EKNF8xD2UM.jpg" alt=""/></figure></li></ul></figure> ",
innerBlocks: [ ],
innerContent: [
" <figure class="wp-block-gallery columns-2 is-cropped"><ul class="blocks-gallery-grid"><li class="blocks-gallery-item"><figure><img src="https://cldup.com/n0g6ME5VKC.jpg" alt=""/></figure></li><li class="blocks-gallery-item"><figure><img src="https://cldup.com/ZjESfxPI3R.jpg" alt=""/></figure></li><li class="blocks-gallery-item"><figure><img src="https://cldup.com/EKNF8xD2UM.jpg" alt=""/></figure></li></ul></figure> "
]
},
{
blockName: "core/gallery",
attrs: [ ],
innerHTML: " ",
innerBlocks: [ ],
innerContent: [
" "
]
},
{
blockName: "core/paragraph",
attrs: [ ],
innerHTML: " <p>You can change the amount of columns in your galleries by dragging a slider in the block inspector in the sidebar.</p> ",
innerBlocks: [ ],
innerContent: [
" <p>You can change the amount of columns in your galleries by dragging a slider in the block inspector in the sidebar.</p> "
]
},
{
blockName: "core/paragraph",
attrs: [ ],
innerHTML: " ",
innerBlocks: [ ],
innerContent: [
" "
]
},
{
blockName: "core/heading",
attrs: [ ],
innerHTML: " <h2>Media Rich</h2> ",
innerBlocks: [ ],
innerContent: [
" <h2>Media Rich</h2> "
]
},
{
blockName: "core/heading",
attrs: [ ],
innerHTML: " ",
innerBlocks: [ ],
innerContent: [
" "
]
},
{
blockName: "core/paragraph",
attrs: [ ],
innerHTML: " <p>If you combine the new <strong>wide</strong> and <strong>full-wide</strong> alignments with galleries, you can create a very media rich layout, very quickly:</p> ",
innerBlocks: [ ],
innerContent: [
" <p>If you combine the new <strong>wide</strong> and <strong>full-wide</strong> alignments with galleries, you can create a very media rich layout, very quickly:</p> "
]
},
{
blockName: "core/paragraph",
attrs: [ ],
innerHTML: " ",
innerBlocks: [ ],
innerContent: [
" "
]
},
{
blockName: "core/image",
attrs: {
align: "full"
},
innerHTML: " <figure class="wp-block-image alignfull"><img src="https://cldup.com/8lhI-gKnI2.jpg" alt="Accessibility is important — don’t forget image alt attribute"/></figure> ",
innerBlocks: [ ],
innerContent: [
" <figure class="wp-block-image alignfull"><img src="https://cldup.com/8lhI-gKnI2.jpg" alt="Accessibility is important — don’t forget image alt attribute"/></figure> "
]
},
{
blockName: "core/image",
attrs: [ ],
innerHTML: " ",
innerBlocks: [ ],
innerContent: [
" "
]
},
{
blockName: "core/paragraph",
attrs: [ ],
innerHTML: " <p>Sure, the full-wide image can be pretty big. But sometimes the image is worth it.</p> ",
innerBlocks: [ ],
innerContent: [
" <p>Sure, the full-wide image can be pretty big. But sometimes the image is worth it.</p> "
]
},
{
blockName: "core/paragraph",
attrs: [ ],
innerHTML: " ",
innerBlocks: [ ],
innerContent: [
" "
]
},
{
blockName: "core/gallery",
attrs: {
ids: [
null,
null
],
linkTo: "none",
align: "wide"
},
innerHTML: " <figure class="wp-block-gallery alignwide columns-2 is-cropped"><ul class="blocks-gallery-grid"><li class="blocks-gallery-item"><figure><img src="https://cldup.com/_rSwtEeDGD.jpg" alt=""/></figure></li><li class="blocks-gallery-item"><figure><img src="https://cldup.com/L-cC3qX2DN.jpg" alt=""/></figure></li></ul></figure> ",
innerBlocks: [ ],
innerContent: [
" <figure class="wp-block-gallery alignwide columns-2 is-cropped"><ul class="blocks-gallery-grid"><li class="blocks-gallery-item"><figure><img src="https://cldup.com/_rSwtEeDGD.jpg" alt=""/></figure></li><li class="blocks-gallery-item"><figure><img src="https://cldup.com/L-cC3qX2DN.jpg" alt=""/></figure></li></ul></figure> "
]
},
{
blockName: "core/gallery",
attrs: [ ],
innerHTML: " ",
innerBlocks: [ ],
innerContent: [
" "
]
},
{
blockName: "core/paragraph",
attrs: [ ],
innerHTML: " <p>The above is a gallery with just two images. It’s an easier way to create visually appealing layouts, without having to deal with floats. You can also easily convert the gallery back to individual images again, by using the block switcher.</p> ",
innerBlocks: [ ],
innerContent: [
" <p>The above is a gallery with just two images. It’s an easier way to create visually appealing layouts, without having to deal with floats. You can also easily convert the gallery back to individual images again, by using the block switcher.</p> "
]
},
{
blockName: "core/paragraph",
attrs: [ ],
innerHTML: " ",
innerBlocks: [ ],
innerContent: [
" "
]
},
{
blockName: "core/paragraph",
attrs: [ ],
innerHTML: " <p>Any block can opt into these alignments. The embed block has them also, and is responsive out of the box:</p> ",
innerBlocks: [ ],
innerContent: [
" <p>Any block can opt into these alignments. The embed block has them also, and is responsive out of the box:</p> "
]
},
{
blockName: "core/paragraph",
attrs: [ ],
innerHTML: " ",
innerBlocks: [ ],
innerContent: [
" "
]
},
{
blockName: "core/embed",
attrs: {
url: "https://vimeo.com/22439234",
type: "video",
providerNameSlug: "vimeo",
responsive: true,
align: "wide",
className: "wp-embed-aspect-16-9 wp-has-aspect-ratio"
},
innerHTML: " <figure class="wp-block-embed alignwide is-type-video is-provider-vimeo wp-block-embed-vimeo wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper"> https://vimeo.com/22439234 </div></figure> ",
innerBlocks: [ ],
innerContent: [
" <figure class="wp-block-embed alignwide is-type-video is-provider-vimeo wp-block-embed-vimeo wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper"> https://vimeo.com/22439234 </div></figure> "
]
},
{
blockName: "core/embed",
attrs: [ ],
innerHTML: " ",
innerBlocks: [ ],
innerContent: [
" "
]
},
{
blockName: "core/paragraph",
attrs: [ ],
innerHTML: " <p>You can build any block you like, static or dynamic, decorative or plain. Here’s a pullquote block:</p> ",
innerBlocks: [ ],
innerContent: [
" <p>You can build any block you like, static or dynamic, decorative or plain. Here’s a pullquote block:</p> "
]
},
{
blockName: "core/paragraph",
attrs: [ ],
innerHTML: " ",
innerBlocks: [ ],
innerContent: [
" "
]
},
{
blockName: "core/pullquote",
attrs: [ ],
innerHTML: " <figure class="wp-block-pullquote"><blockquote><p>Code is Poetry</p><cite>The WordPress community</cite></blockquote></figure> ",
innerBlocks: [ ],
innerContent: [
" <figure class="wp-block-pullquote"><blockquote><p>Code is Poetry</p><cite>The WordPress community</cite></blockquote></figure> "
]
},
{
blockName: "core/pullquote",
attrs: [ ],
innerHTML: " ",
innerBlocks: [ ],
innerContent: [
" "
]
},
{
blockName: "core/paragraph",
attrs: {
align: "center"
},
innerHTML: " <p class="has-text-align-center"> <em> If you want to learn more about how to build additional blocks, or if you are interested in helping with the project, head over to the <a href="https://github.com/WordPress/gutenberg">GitHub repository</a>. </em> </p> ",
innerBlocks: [ ],
innerContent: [
" <p class="has-text-align-center"> <em> If you want to learn more about how to build additional blocks, or if you are interested in helping with the project, head over to the <a href="https://github.com/WordPress/gutenberg">GitHub repository</a>. </em> </p> "
]
},
{
blockName: "core/paragraph",
attrs: [ ],
innerHTML: " ",
innerBlocks: [ ],
innerContent: [
" "
]
},
{
blockName: "core/button",
attrs: {
align: "center"
},
innerHTML: " <div class="wp-block-button aligncenter"><a class="wp-block-button__link" href="https://github.com/WordPress/gutenberg">Help build Gutenberg</a></div> ",
innerBlocks: [ ],
innerContent: [
" <div class="wp-block-button aligncenter"><a class="wp-block-button__link" href="https://github.com/WordPress/gutenberg">Help build Gutenberg</a></div> "
]
},
{
blockName: "core/button",
attrs: [ ],
innerHTML: " ",
innerBlocks: [ ],
innerContent: [
" "
]
},
{
blockName: "core/separator",
attrs: [ ],
innerHTML: " <hr class="wp-block-separator"/> ",
innerBlocks: [ ],
innerContent: [
" <hr class="wp-block-separator"/> "
]
},
{
blockName: "core/separator",
attrs: [ ],
innerHTML: " ",
innerBlocks: [ ],
innerContent: [
" "
]
},
{
blockName: "core/paragraph",
attrs: {
align: "center"
},
innerHTML: " <p class="has-text-align-center">Thanks for testing Gutenberg!</p> ",
innerBlocks: [ ],
innerContent: [
" <p class="has-text-align-center">Thanks for testing Gutenberg!</p> "
]
},
{
blockName: "core/paragraph",
attrs: [ ],
innerHTML: " ",
innerBlocks: [ ],
innerContent: [
" "
]
},
{
blockName: "core/paragraph",
attrs: {
align: "center"
},
innerHTML: " <p class="has-text-align-center">👋</p> ",
innerBlocks: [ ],
innerContent: [
" <p class="has-text-align-center">👋</p> "
]
}
]
},
excerpt: {
rendered: "<p>The goal of this new editor is to make adding rich content to WordPress simple and enjoyable. This whole post is composed of pieces of content—somewhat similar to LEGO bricks—that you can move around and interact with. Move your cursor around and you’ll notice the different blocks light up with outlines and arrows. Press the&hellip; <a class="more-link" href="http://wpdev.localhost/2020/11/05/welcome-to-the-gutenberg-editor/">Continue reading <span class="screen-reader-text">Welcome to the Gutenberg Editor</span></a></p> ",
protected: false
},
author: 1,
featured_media: 0,
comment_status: "open",
ping_status: "open",
sticky: false,
template: "",
format: "standard",
meta: [ ],
categories: [
1
],
tags: [ ],
_links: {
self: [
{
href: "http://wpdev.localhost/wp-json/wp/v2/posts/63"
}
],
collection: [
{
href: "http://wpdev.localhost/wp-json/wp/v2/posts"
}
],
about: [
{
href: "http://wpdev.localhost/wp-json/wp/v2/types/post"
}
],
author: [
{
embeddable: true,
href: "http://wpdev.localhost/wp-json/wp/v2/users/1"
}
],
replies: [
{
embeddable: true,
href: "http://wpdev.localhost/wp-json/wp/v2/comments?post=63"
}
],
version-history: [
{
count: 1,
href: "http://wpdev.localhost/wp-json/wp/v2/posts/63/revisions"
}
],
predecessor-version: [
{
id: 64,
href: "http://wpdev.localhost/wp-json/wp/v2/posts/63/revisions/64"
}
],
wp:attachment: [
{
href: "http://wpdev.localhost/wp-json/wp/v2/media?parent=63"
}
],
wp:term: [
{
taxonomy: "category",
embeddable: true,
href: "http://wpdev.localhost/wp-json/wp/v2/categories?post=63"
},
{
taxonomy: "post_tag",
embeddable: true,
href: "http://wpdev.localhost/wp-json/wp/v2/tags?post=63"
}
],
curies: [
{
name: "wp",
href: "https://api.w.org/{rel}",
templated: true
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment