Gutenberg

Description

Gutenberg est plus qu’un éditeur. Bien que l’éditeur soit au centre des préoccupations, le projet aura, à terme, un impact sur l’ensemble de l’expérience de publication incluant la personnalisation (le prochain centre d’intérêt).

Découvrez-en plus sur le projet.

L’éditorialisation comme focus principal

L’éditeur créera une nouvelle expérience de construction de pages ou d’articles qui simplifiera la rédaction de contenus enrichis. Cela passe par les « blocs » pour unifier ce qui aujourd’hui se fait avec des codes courts, du HTML personnalisé ou tout autre truc spécial dans ce genre — 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. Le bloc permet d’unifier de multiples éléments d’interface. Si nous le faisions sur l’interface existante, nous aurions ajouté de la complexité, alors qu’en la remplaçant, nous simplifions l’ensemble.
  2. En revisitant l’interface, nous modernisons l’expérience d’écriture, de modification et de publication, en nous concentrant sur l’utilisabilité et la simplicité, ce qui bénéficie à la fois aux utilisateurs futurs et actuels.
  3. En donnant une importance centrale à l’interface de blocs, nous encourageons les développeurs à créer leurs blocs dédiés, ce qui sera bien mieux que les widgets et codes courts actuels.
  4. Le fait de refondre l’ensemble de l’interface pose des fondations solides pour la prochaine étape, la personnalisation complète de votre site via le back-office et les blocs.
  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.

Les Blocs

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.

Compatibilité

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.

Les étapes de 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.

Contributeur·ices

Gutenberg est bâti par de nombreux développeur·ses et contributeur·ices. Voici la liste non exhaustive : CONTRIBUTORS.md (en anglais).

FAQ

Comment puis-je envoyer des retours ou être aidé par rapport à un bug ?

Nous adorerions entendre vos retours de bugs, vos suggestions de fonctionnalités et tout autre retour ! Veuillez consulter la page de retours sur GitHub pour rechercher des problèmes existants ou pour en ouvrir un nouveau. Bien que nous essayerons de trier les problèmes signalés ici sur le forum des extensions, vous obtiendrez une réponse plus rapide (et limiterez les doublons) en gardant tout centralisé dans le répertoire GitHub.

Comment puis-je contribuer ?

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.

Voyez également CONTRIBUTING.md.

Où puis-je en savoir plus sur Gutenberg ?

Avis

No just no.

I am in shock with how bad this is. And its supposedly going to be released as the DEFAULT in a couple of updates? This has to be a joke.

All the best things about block-like editors are ignored here, its like they have never used a block editor before. There’s no « drag and drop » at all, really. You should be able to simply drag blocks to the left and right of each other. The way the « columns(beta) » option works is essentially how the whole editor should work by default but doesn’t for some reason. Want a good example? Use MailChip and build a custom template. There is an example of a really dated but nice working « block » editor. Use that as a base to move forward because what has been built here is… horrible.

Random paragraph tags are inserted throughout the content with no rhyme or reason and you constantly have to go to the code area to clean them out and fix invalidly nested tags. The system is unintuitive and cumbersome and worst of all does not feel natively WordPress. WordPress is so clean and intuitive everywhere else, other than the Customizer where it is up to the theme developer, but even that manages to feel more native.

This editor reeks of being unpolished and untested. It’s complicating something that was not complicated at all before. I definitely applaud them wanting to replace the old outdated TinyMCE style editor but this is NOT ready and is NOT even close to an acceptable replacement. DO NOT RELEASE THIS unless you want to KILL WORDPRESS.

Js save method not working

Page is not loading most of the times. Updating and publishing failed always. Take away the js/ajax dependency and it is not developer friendly.

Looks Good, Doesn’t Work Good

Its a shame, but besides a brand new wordpress install, gutenberg doesnt seem to work in any of my sites, sometimes its just some quirk, sometimes it just flat out breaks the backend… not good….

Lire les 1 408 avis

Contributeurs & développeurs

« Gutenberg » est un logiciel libre. Les personnes suivantes ont contribué à cette extension.

Contributeurs

“Gutenberg” a été traduit dans 39 locales. Remerciez l’équipe de traduction pour ses contributions.

Traduisez « Gutenberg » dans votre langue.

Le développement vous intéresse ?

Parcourir le code, consulter le SVN dépôt, ou s’inscrire au journal de développement par RSS.

Journal

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.