From 94d9e697020cdae815a89ec0e8fae03c7c58b5ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C3=ADas=20Surdi?= Date: Tue, 21 Jun 2022 15:57:08 +0200 Subject: [PATCH] Add experimental onSelection callback --- README.md | 65 ++++++++++++++----------- src/index.js | 23 ++++++++- stories/IsolatedBlockEditor.stories.tsx | 4 +- 3 files changed, 62 insertions(+), 30 deletions(-) diff --git a/README.md b/README.md index 819383eb..57b73d9a 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@ Repackages Gutenberg's editor playground as a full-featured multi-instance editor that does not require WordPress. The key features are: + - Extends the Gutenberg playground editor to match a full editor - Allows multiple onscreen instances with seperate data stores and keyboard handlers - Undo history @@ -26,6 +27,7 @@ And a full list of features: - Re-routing of WordPress API requests The Isolated Block Editor is provided in three forms: + - ES6 module - CommonJS module - Standalone JavaScript file, for inclusion on any browser page @@ -33,6 +35,7 @@ The Isolated Block Editor is provided in three forms: Requires: Gutenberg 13.3.0 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 - [Gutenberg Chrome Extension](https://github.com/Automattic/gutenberg-everywhere-chrome/) - a Chrome extension that allows Gutenberg to be used on any page @@ -65,7 +68,7 @@ They key difference is in the Webpack config. If you don't want to bundle Gutenb ```js plugins: [ - new DependencyExtractionWebpackPlugin( { injectPolyfill: true } ) + new DependencyExtractionWebpackPlugin( { injectPolyfill: true } ) ] ``` @@ -87,11 +90,11 @@ You can use the provided `isolated-block-editor.js`, `core.css`, and `isolated-b -