元宇宙

  • 元宇宙

    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 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.

    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.

    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.

    You can change the amount of columns in your galleries by dragging a slider in the block inspector in the sidebar.

    Media Rich

    If you combine the new wide and full-wide alignments with galleries, you can create a very media rich layout, very quickly:

    Accessibility is important — don’t forget image alt attribute

    Sure, the full-wide image can be pretty big. But sometimes the image is worth it.

    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.

    Any block can opt into these alignments. The embed block has them also, and is responsive out of the box:

    You can build any block you like, static or dynamic, decorative or plain. Here’s a pullquote block:

    Code is Poetry

    The WordPress community

    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 GitHub repository.


    Thanks for testing Gutenberg!

    👋

  • 元宇宙,  投资,  生活

    Our Trip to San Francisco

    Cras eget elit convallis est condimentum congue non id sem. Proin metus dui, eleifend id mollis quis, pulvinar in metus. Nulla pharetra sapien ultricies dui blandit, eget condimentum tortor rhoncus. Donec gravida leo neque, ac consequat diam dignissim ut. In ligula felis, tempus vel est ut, pellentesque fermentum ligula. Proin at dui sagittis, rutrum velit in, fermentum nisl. Donec sagittis, risus vitae mollis pretium, tellus turpis feugiat mi, ac cursus nibh metus quis tortor. Integer ultricies ullamcorper nulla, nec consectetur mi hendrerit eget. Donec at elit vel ex pulvinar vestibulum. Cras tristique molestie leo malesuada sollicitudin. Nunc nec lorem id mi consequat rhoncus ac eget purus. Sed massa orci, volutpat sit amet velit sagittis, placerat euismod felis. In hac habitasse platea dictumst. Etiam interdum nulla vitae neque porta interdum quis a velit. Ut semper maximus vulputate.

    In sodales leo velit, ac malesuada quam consequat in. Cras elementum feugiat tortor, nec vestibulum turpis consequat eget. Nam massa risus, ultrices et lacus id, maximus tempor tortor. Sed non sapien vitae sem dictum accumsan. Nulla scelerisque felis eget dolor scelerisque dignissim. Proin dictum euismod egestas. Suspendisse potenti. Praesent ullamcorper augue ut turpis sodales, ut luctus mauris mattis. Suspendisse accumsan ex arcu, in viverra odio hendrerit ac. Pellentesque tincidunt tortor nunc, vel commodo neque convallis aliquet. Cras mattis nec mi non sollicitudin. Vivamus semper euismod lectus sit amet ullamcorper. Nullam in nibh malesuada, vehicula sem sit amet, semper velit.

    Cras pharetra, mauris sed feugiat accumsan, nisl quam rhoncus erat, non pulvinar urna velit non libero. Ut interdum suscipit fringilla. Donec semper volutpat libero, sed sollicitudin lectus tempus at. Sed congue lacinia tortor. Integer lacinia felis ac odio dictum tempor. Nullam massa mi, pulvinar interdum rutrum sed, pharetra nec dui. Integer a sapien sit amet purus finibus tincidunt. Morbi ac sapien sapien. Phasellus odio ipsum, vehicula hendrerit suscipit vitae, imperdiet ac tortor. Duis auctor facilisis efficitur. Vivamus non tortor pretium, bibendum velit ac, sagittis neque. Fusce varius ut ipsum sit amet viverra. Sed volutpat mauris non ex volutpat, at sagittis sapien dignissim.

    Maecenas faucibus feugiat congue. Nam fringilla eros at ante consequat, at commodo nisl ultrices. Morbi ac purus sed erat pellentesque efficitur. Proin tempor quis purus sed vulputate. Cras pharetra luctus mi, vitae ultricies risus scelerisque a. Praesent faucibus sed elit eu aliquam. Morbi congue ipsum mi. Integer urna eros, efficitur a tellus nec, ornare volutpat urna.

    Proin rhoncus congue nibh ut egestas. Vivamus a feugiat felis, a pharetra sapien. Nullam consequat, neque ac aliquam tristique, diam tortor pharetra lacus, quis laoreet ligula mi eget neque. Nullam non est mi. Integer eleifend neque non mauris elementum fermentum. Curabitur vitae tempus justo. Nunc fringilla ac tellus nec fermentum. In hac habitasse platea dictumst. Proin aliquet, ligula sed sollicitudin pharetra, velit mauris lacinia quam, eu tincidunt diam mauris eget justo. Quisque dictum risus a tincidunt cursus. Mauris non gravida sapien. Quisque eu magna dictum, faucibus ligula eu, rhoncus orci. Integer bibendum nulla id dui tristique, a rhoncus eros euismod. Curabitur in dapibus magna. Quisque nec ipsum odio. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.

    Donec ut arcu dignissim, rhoncus lectus nec, sodales elit. Integer ex metus, imperdiet eu odio sed, rhoncus ultrices orci. Proin condimentum sodales lorem id ultrices. Aenean venenatis magna sem, ac sodales enim congue nec. Sed ut bibendum ex. Aliquam in purus ac augue mollis dapibus. Curabitur sit amet dictum leo, eget finibus dui. In hac habitasse platea dictumst. Suspendisse vitae tellus eget arcu pretium dictum. Nam tempor efficitur nulla in mollis. Maecenas orci neque, ullamcorper eu felis sodales, tincidunt luctus dui. Fusce est metus, semper sit amet erat a, molestie finibus arcu. Nullam interdum gravida ex a ornare.

简体中文