官术网_书友最值得收藏!

Working in the block-based content editor

The block-based content editor is the latest and greatest addition to WordPress. The project started its life under the name of Gutenberg and was in development for around two years before it was finally included in WordPress 5 as the primary content-editing tool:

What you can see in the preceding screenshot is the main view of the block-based content editor. Also notice the helpful onboarding tips that provide you with assistance during your initial encounter with the new editor.

So why is it called the block-based editor? Because of the way the editor handles content and manages their structure. The content that you have within your posts or pages is divided into individual blocks, one below the other, all arranged neatly on a (digital) canvas.

Before block-based editing, WordPress used a traditional what-you-see-is-what-you-get editor. It used a classic paragraph-based structure—an approach very similar to how you'd build a Google or a Word document. However, such a traditional structure isn't always suited to handle the modern content requirements of the web. In other words, it makes it hard to build elaborate, visually pleasing blog posts or pages and present them effectively on different devices.

Block-based editing makes more sense since each block of content can be treated individually and handled differently depending on the device used to view the content. Moreover, it's easier to rearrange blocks than it is paragraphs.

So what can a block actually be? Think about everything that can be put on a web page. This includes the following:

  • Blocks of text
  • Images
  • Videos
  • Quotes
  • Headings
  • Tables
  • Buttons
  • Embeds from third-party websites (such as YouTube or Facebook)
  • And much more 

The following section of the chapter describes how to use the block-based editor to create your first blog post.

主站蜘蛛池模板: 云霄县| 崇州市| 米脂县| 洪雅县| 皋兰县| 甘德县| 新野县| 崇义县| 新河县| 马关县| 双城市| 静宁县| 枝江市| 庆安县| 西青区| 祁阳县| 灵寿县| 南召县| 墨江| 永安市| 新蔡县| 彭阳县| 泗水县| 玉屏| 舞阳县| 汕头市| 哈尔滨市| 灵台县| 通渭县| 平乡县| 银川市| 眉山市| 秭归县| 阜宁县| 临城县| 宜良县| 波密县| 旬阳县| 张家界市| 邳州市| 丰镇市|