Welcome to the Gutenberg Editor

Welcome to the Gutenberg Editor

Of Mountains & Printing Presses

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 arrows to reposition blocks quickly, without fearing about losing things in the process of copying and pasting.

What you are reading now is a text block, the most basic block of all. The text block has its own controls to be moved freely around the post…

… like this one, which is right aligned.

Headings are separate blocks as well, which helps with the outline and organization of your content.

A Picture is worth a Thousand Words

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.

Beautiful landscape
If your theme supports it, you’ll see the “wide” button on the image toolbar. Give it a try.

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.

The Inserter Tool

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 (+) 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.

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:

  • Text & Headings
  • Images & Videos
  • Galleries
  • Embeds, like YouTube, Tweets, or other WordPress posts.
  • Layout blocks, like Buttons, Hero Images, Separators, etc.
  • And Lists like this one of course 🙂

Visual Editing

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:

The editor will endeavour 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.

Matt Mullenweg, 2017

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.

Blok bisa apa saja yang Anda butuhkan. Misalnya, Anda mungkin ingin menambahkan kutipan yang lemah sebagai bagian dari komposisi teks Anda, atau Anda mungkin lebih suka untuk menampilkan gambar raksasa. Semua opsi ini tersedia di inserter.

Anda dapat mengubah jumlah kolom di galeri Anda dengan menyeret penggeser di inspektor blok di bilah sisi.

Media Rich

Jika Anda menggabungkan baru lebar dan penuh-lebar keberpihakan dengan galeri, Anda dapat membuat sangat media yang tata letak yang kaya, sangat cepat:

Accessibility is important don't forget image alt attribute

Tentu, gambar full-wide bisa sangat besar. Tapi kadang-kadang gambar itu sepadan.

Di atas adalah galeri hanya dengan dua gambar. Ini adalah cara yang lebih mudah untuk membuat tata letak visual yang menarik, tanpa harus berurusan dengan pelampung. Anda juga dapat dengan mudah mengonversi kembali galeri ke gambar individual, dengan menggunakan pengalih blok.

Blok apa pun dapat memilih keberpihakan ini. Blok yang disematkan juga memilikinya, dan responsif di luar kotak:

Anda dapat membuat blok apa pun yang Anda suka, statis atau dinamis, dekoratif atau polos. Ini adalah blok pullquote:

Kode adalah Puisi

Komunitas WordPress

Jika Anda ingin mempelajari lebih lanjut tentang cara membuat blok tambahan, atau jika Anda tertarik untuk membantu proyek, pergilah ke repositori GitHub .

Terima kasih telah menguji Gutenberg!