Skip to content

Commit

Permalink
Update packages for Gutenberg 16.7.1 (#240)
Browse files Browse the repository at this point in the history
* Bump all packages

* Remove arial font

* Remove yJS

* Fix some linting issues

* Use new VisualEditor code

Without this we dont get alignment options

* Fix linting

* Fix the top toolbar mode

The setting changed within Gutenberg

* Update build files

* Downgrade storybook

It’s causing ES6 errors during `yarn test`

* Disable e2e console check

Somehting in Gutenberg seems to be tripping it
  • Loading branch information
johngodley authored Oct 16, 2023
1 parent 1907c31 commit 7c6cc75
Show file tree
Hide file tree
Showing 272 changed files with 5,474 additions and 8,095 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2.27.0] - 2023-10-13

### Breaking changes
- Collaborative editing has been removed

### Update
- Get working with Gutenberg 16.7.1+

## [2.26.0] - 2023-07-11

### Update
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,13 @@ The Isolated Block Editor is provided in three forms:
- CommonJS module
- Standalone JavaScript file, for inclusion on any browser page

Requires: Gutenberg 13.3.0
Requires: Gutenberg 16.7.1

If using with WordPress then You are advised to use the Gutenberg plugin, although it may work with the default Gutenberg provided by WordPress. You may or may not run into problems when using with different versions (older or newer).

Examples:
- [Plain Text Editor](https://github.com/Automattic/isolated-block-editor/blob/trunk/src/browser/README.md) - standalone JS and CSS file that can replace any `textarea` on any page with a full Gutenberg editor
- [Gutenberg Everywhere](https://github.com/Automattic/gutenberg-everywhere/) - a WordPress plugin to add Gutenberg to comments, WP admin pages, bbPress, and BuddyPress
- [Blocks Everywhere](https://github.com/Automattic/blocks-everywhere/) - a WordPress plugin to add Gutenberg to comments, WP admin pages, bbPress, and BuddyPress
- [Gutenberg Chrome Extension](https://github.com/Automattic/gutenberg-everywhere-chrome/) - a Chrome extension that allows Gutenberg to be used on any page
- [Gutenberg Desktop](https://github.com/Automattic/gutenberg-desktop/) - a desktop editor that supports the loading and saving of HTML and Markdown files
- [P2](https://wordpress.com/p2/) - WordPress as a collaborative workspace (coming soon for self-hosted)
Expand All @@ -59,7 +61,7 @@ The Isolated Block Editor aims to provide an editor that is as isolated from Wor
- Bundled without Gutenberg - if used on a WordPress site then you can use the Gutenberg code already included with WordPress. You will need a working WordPress site, but do not need to include Gutenberg within your editor
- Bundled with Gutenberg - Gutenberg is included within the editor and there is no dependency on WordPress or PHP

Examples are provided for both situations (see [Plain text editor](examples/plain-text-editor/README.md) for bundled and [Gutenberg Everywhere](https://github.com/Automattic/gutenberg-everywhere/) for unbundled).
Examples are provided for both situations (see [Plain text editor](examples/plain-text-editor/README.md) for bundled and [Blocks Everywhere](https://github.com/Automattic/gutenberg-everywhere/) for unbundled).

The key difference is in the Webpack config. If you don't want to bundle Gutenberg with your editor then you can use the `DependencyExtractionWebpackPlugin` plugin:

Expand Down Expand Up @@ -172,11 +174,10 @@ The `IsolatedBlockEditor` also exports the following support components:
- `FooterSlot` - Insert content into the footer
- `EditorHeadingSlot` - Insert content at the beginning of the editor area. Suitable for titles.
- `ActionArea` - Insert content into the actions sidebar
- [`CollaborativeEditing`](https://github.com/Automattic/isolated-block-editor/tree/trunk/src/components/collaborative-editing) - Enable real-time collaborative editing

```js

import IsolatedBlockEditor, { EditorLoaded, DocumentSection, ToolbarSlot, CollaborativeEditing } from 'isolated-block-editor';
import IsolatedBlockEditor, { EditorLoaded, DocumentSection, ToolbarSlot } from 'isolated-block-editor';

render(
<IsolatedBlockEditor
Expand All @@ -187,7 +188,6 @@ render(
>
<EditorLoaded onLoaded={ () => {} } onLoading={ () => {} } />
<DocumentSection>Extra Information</DocumentSection>
<CollaborativeEditing settings={ collabSettings } />

<ToolbarSlot>
<button>Beep!</button>
Expand Down
Loading

0 comments on commit 7c6cc75

Please sign in to comment.