Gutenberg

Beskrivelse

Gutenberg is more than an editor. While the editor is the focus right now, the project will ultimately impact the entire publishing experience including customization (the next focus area).

Discover more about the project.

Editing focus

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

One thing that sets WordPress apart from other systems is that it allows you to create as rich a post layout as you can imagine — but only if you know HTML and CSS and build your own custom theme. By thinking of the editor as a tool to let you write rich posts and create beautiful layouts, we can transform WordPress into something users love WordPress, as opposed something they pick it because it’s what everyone else uses.

Gutenberg looks at the editor as more than a content field, revisiting a layout that has been largely unchanged for almost a decade.This allows us to holistically design a modern editing experience and build a foundation for things to come.

Here’s why we’re looking at the whole editing screen, as opposed to just the content field:

  1. The block unifies multiple interfaces. If we add that on top of the existing interface, it would add complexity, as opposed to remove it.
  2. By revisiting the interface, we can modernize the writing, editing, and publishing experience, with usability and simplicity in mind, benefitting both new and casual users.
  3. When singular block interface takes center stage, it demonstrates a clear path forward for developers to create premium blocks, superior to both shortcodes and widgets.
  4. Considering the whole interface lays a solid foundation for the next focus, full site customization.
  5. Looking at the full editor screen also gives us the opportunity to drastically modernize the foundation, and take steps towards a more fluid and JavaScript powered future that fully leverages the WordPress REST API.

Blocks

Blocks are the unifying evolution of what is now covered, in different ways, by shortcodes, embeds, widgets, post formats, custom post types, theme options, meta-boxes, and other formatting elements. They embrace the breadth of functionality WordPress is capable of, with the clarity of a consistent user experience.

Imagine a custom “employee” block that a client can drag to an About page to automatically display a picture, name, and bio. A whole universe of plugins that all extend WordPress in the same way. Simplified menus and widgets. Users who can instantly understand and use WordPress — and 90% of plugins. This will allow you to easily compose beautiful posts like this example.

Check out the FAQ for answers to the most common questions about the project.

Compatibility

Posts are backwards compatible, and shortcodes will still work. We are continuously exploring how highly-tailored metaboxes can be accommodated, and are looking at solutions ranging from a plugin to disable Gutenberg to automatically detecting whether to load Gutenberg or not. While we want to make sure the new editing experience from writing to publishing is user-friendly, we’re committed to finding a good solution for highly-tailored existing sites.

The stages of Gutenberg

Gutenberg has three planned stages. The first, aimed for inclusion in WordPress 5.0, focuses on the post editing experience and the implementation of blocks. This initial phase focuses on a content-first approach. The use of blocks, as detailed above, allows you to focus on how your content will look without the distraction of other configuration options. This ultimately will help all users present their content in a way that is engaging, direct, and visual.

These foundational elements will pave the way for stages two and three, planned for the next year, to go beyond the post into page templates and ultimately, full site customization.

Gutenberg is a big change, and there will be ways to ensure that existing functionality (like shortcodes and meta-boxes) continue to work while allowing developers the time and paths to transition effectively. Ultimately, it will open new opportunities for plugin and theme developers to better serve users through a more engaging and visual experience that takes advantage of a toolset supported by core.

Contributors

Gutenberg is built by many contributors and volunteers. Please see the full list in CONTRIBUTORS.md.

FAQ

How can I send feedback or get help with a bug?

Vi vil elske at høre på jeres fejlrapporter, funktionsønsker al anden feedback! Fortsæt venligst over til GitHub problemside og søg blandt eksisterende problemer eller opret en ny melding. Selvom vi forsøger videresende problemer rapporteret her på pluginforum’et, så vil du få meget hurtigere respons på (og reducere dobbeltarbejde) ved at holde det hele centraliseret på GitHub repository.

Hvordan kan jeg bidrage?

We’re calling this editor project “Gutenberg” because it’s a big undertaking. We are working on it every day in GitHub, and we’d love your help building it.You’re also welcome to give feedback, the easiest is to join us in our Slack channel, #core-editor.

See also CONTRIBUTING.md.

Where can I read more about Gutenberg?

Reviews

Very Bad!

I updated the plugin today to 4.0.0 version and now i can’t edit an existing nor create a new post…Only a blank page appears

Broken Update

Since last update, the plugin has been creating conflicts on my site and resulting in random errors.

Updating & Publishing failed errors…

I love everything I see about the Gutenberg editor so my bias is on the side of “can’t wait” but…

It’s seriously buggy and not ready for prime time. I’m testing out the Gutenberg editor plugin on a fairly new site with minimal content and when trying to create, save or publish a new post I keep getting 2 errors saying “Updating Failed” and “Publishing Failed”.

I deactivated all the plugins in case there was some kind of conflict but that didn’t solve the problem. Seriously not impressed with the Gutenberg editor experience so far and can’t imagine using it in it’s present state on a live site!

Плохо!

Доброго времени суток! Gutenberg работает не так как надо. До 16 октября я делал с Gutenberg и он заглючил и записи не сохраняет. Ошибку обновления постоянно показывает. У меня json отключен может из-за этого, но лично мне json не нужен, а значит и Gutenberg тоже. Я бы порекомендовал его сделать плагином и только, а в само ядро wordpress не надо ставить. Нужно оставить классический редактор, а Gutenberg оставить плагином. Это будет правильное решение!!! Я все ночь потратил на правку записей в классическом редакторе, а Gutenberg деактивировал. Я заметил если у кого записи сделаны в классическом редакторе, и если переключится на Gutenberg то записи становятся кривыми. Разработчикам wordpress рекомендую еще раз оставить классический редактор в ядре, а Gutenberg оставить плагином. Могу сказать если вы Gutenberg установите в ядро то поломаете много сайтов так как стили разные и записи станут кривыми. Вы сами видите что многим этот Gutenberg не нравится поэтому прислушайтесь к людям.

Read all 1.393 reviews

Contributors & Developers

“Gutenberg” is open source software. The following people have contributed to this plugin.

Contributors

“Gutenberg” er blevet oversat til 39 lokalområder. Thank you to the translators for their contributions.

Translate “Gutenberg” into your language.

Interested in development?

Gennemse koden, tjek SVN repository, eller abonner på udviklerloggen via RSS.

Ændringslog

Latest

New Features

  • Add ability to change overlay color in Cover Image.
  • Introduce new Font Size Picker with clear labels and size comparison.
  • Introduce new RichText data structure to allow better manipulation of inline content.
  • Add Pullquote style variation and color palette support.
  • Add support for post locking when multiple authors interact with the editor.
  • Add an alternative block appender when the container doesn’t support the default block (paragraph).
  • Improve the UI and interactions around floats.
  • Add option to skip PublishSidebar on publishing.
  • Add support for shortcode embeds that enqueue scripts.
  • Add a button to exit the Code Editor.
  • Introduce a reusable ResizableBox component.
  • Style nested <ul>s with circles instead of normal bullets.
  • Show hierarchical terms sorted by name and allow them to be filterable through search. Hide the filter box if there are fewer than 8 terms.
  • Improve messaging around invalid block detection.
  • Use text color for links when a paragraph has a color applied.
  • Allow extended usage of the controls API in resolvers within data layer.
  • Ensure that a default block is inserted (and selected) when all other blocks are removed.
  • Enhance the block parser to support multiple type, in accordance with JSON schema.
  • Add a larger target area for resize drag handles.
  • Add media button to classic block.
  • Add control to toggle responsive mechanism on embed blocks.
  • Update sidebar design to have a lighter feeling.
  • Update resolvers in data layer to rely on controls instead of async generators.
  • Set template validity on block reset.
  • Remove dirty detection from Meta Boxes to reduce false positives of “unsaved changes”.
  • Show “Publish: Immediately” for new drafts by inferring floating date.
  • Add a slight transition to Full Screen mode.
  • Improve spacing setup in Gallery Block.
  • Remove additional side padding from blocks.
  • Improve the reusable blocks “Export as JSON” link.
  • Enforce a default block icon size to allow flex alignment and fix unaligned labels.
  • Consider single unmodified default block as empty content.
  • Only display URL input field when “Link To” is set for Image Block.
  • Make backspace behavior consistent among Quote, Verse and Preformatted.
  • Expose refresh method from Dropdown component.
  • Omit style tags when pasting.
  • Use best fitting embed aspect ratio if exact match doesn’t exist.
  • Avoid dispatching undefined results in promise middleware.
  • Change keyboard shortcut for removing a block to access + z.
  • Replace the Full Screen mode “x” icon with a back arrow.
  • Make drag handle visible on hover while in nested contexts.
  • Pass the tab title to the TabPanel component for situations where it may need to be highlighted.
  • Allow setting no alignment when a default alignment exists.
  • Improve title and appender margin fix.
  • Avoid focusing on the close button on modal and try a modal appear animation.
  • Change the URL Input label to match Classic.
  • Adjust media upload source for RichText.
  • Handle edge cases in with-constrained-tabbing and add tests.
  • Set a consistent input field width in media placeholders.
  • Add a hover state to sidebar panel headers.
  • Change settings title from “Writing” to “View”.
  • Convert the “tools” menu group into internal plugin.
  • Normalize data types and fix default implementation in parser.
  • Cleanup CSS specificity issues on Button component for portability.
  • Display error when attempting to embed URLs that can’t be embedded and don’t generate a fallback.
  • Update some edit and save button labels and styles for consistency.
  • Make “Manage Reusable Blocks” a link instead of an icon button.

Bug Fixes

  • Fix issue with Enter and the Read More block.
  • Fix menu item hover colors.
  • Fix issue with editor styles and fullscreen mode.
  • Fix popover link repositioning.
  • Fix Space Block layout issues on small screens.
  • Fix custom classNames for dynamic blocks.
  • Fix spacing of post-publish close button in other languages.
  • Fix Async Generator resolvers resolution.
  • Fix issue with Spacer Block not being resizable when using unified toolbar and spotlight mode.
  • Fix grammar.md manifest entry and update data docs.
  • Fix issue with region focus on the header area on IE11.
  • Fix reusable block broken button dimensions on IE11.
  • Fix issues with dropping blocks after dragging when calculating new block index.
  • Fix InnerBlock templates sync conditions to avoid a forced locking.
  • Fix typo in @wordpress/api-fetch README.md.
  • Fix regression with Button Block placeholder text.
  • Fix dropzone issue in Edge (event.dataTransfer.types not being an array).
  • Fix documentation for registerBlockStyle arguments and clarify getSaveElement filter.
  • Fix raw transforms not working in Edge when pasting content.
  • Fix a regression where wide images would cause horizontal scrollbars.
  • Fix issue with gallery margin while typing a caption.
  • Fix Block alignment CSS rules affecting nested blocks.
  • Fix CSS issue with nested paragraph placeholder.
  • Fix links in docs and add documentation for isPublishSidebarEnabled.
  • Fix shortcode package dependencies.
  • Fix overscroll issues locking scroll up on long pages.
  • Fix reference to SVG component in docs.
  • Fix Table Block header and body column misalignment.
  • Fix an issue where inserting like breaks would throw an error.
  • Fix regressions with placeholder text color (Cover Image, captions).
  • Fix Editor Styles regression.
  • Fix faulty Jed state after setLocaleData.
  • Fix small line-height issue in editor style.
  • Fix Pullquote margin regressions.
  • Fix issues with File Block and new RichText structures.
  • Fix Writing Flow E2E test.
  • Fix issues with “tips” popup margins.
  • Fix issue with mentions after rich text value merge.
  • Fix clipping issue with Instagram embed.
  • Fix ESNext example code.
  • Fix usage of tabs / spaces in parser code.
  • Fix Classic Block toolbar regression.
  • Fix issues with Table Block alignments.
  • Fix inserter misalignment regression.

Other Changes

  • Minor i18n fixes after deprecations were removed.
  • Rename parameter from mapStateToProps to mapSelectToProps in withSelect.
  • Rename AccessibleSVG to SVG and make it work with React Native.
  • Change createObjectUrl to createBlobURL.
  • Clean up Sass variables, comments, reduce complexity.
  • Move Classic Block to packages.
  • Move HTML Block into the blocks library package.
  • Move embed scripts into the body in preview documents.
  • Ensure that the return value of apiFetch is always a valid Promise object in Firefox.
  • Allow negative numbers in order field for Page Attributes.
  • Make sure the demo page loads without marking itself as having changes.
  • Refactor MediaUpload, MediaPlaceholder, and mediaUpload to support arrays with multiple supported types.
  • Add new icons to dashicons package.
  • Add link to “add_theme_support” docs.
  • Remove glob and just include necessary files.
  • Remove unused isButton prop.
  • Remove Vine embed.
  • Replace length check with RichText.isEmpty in Image Block.
  • Replace TinyMCE function to decode entities with existing Gutenberg package.
  • Extract the edit-post module as a reusable package.
  • Pass editor initial settings as direct argument.
  • Pass feature image ID to media upload component.
  • Pass all available properties in the media object.
  • Replace element-closest with registered vendor script.
  • Add new handbook introduction and docs about “blocks as the interface”.
  • Add utils to the wp-data script dependencies.
  • Disable alternate diff drivers in setup script.
  • Clarify RichText.Content readme docs.
  • Document isDefault option for block styles.
  • Update Panel component documentation.
  • Update full post content test fixtures.
  • Add ESLint rule about not allowing string literals in IDs.
  • Add a test for the new Code → Preformatted transform and use snapshots.
  • Add E2E test to visit demo page and verify errors.
  • Add E2E tests for list creation.
  • Update Redux to the latest version.

Mobile

  • Add the React Native entry point to more packages.
  • Need to define isRichTextValueEmpty for mobile.
  • Have Travis run mobile tests that use the parent code.
  • Wire onEnter to requestHTMLWithCursor command in RichText.