You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 30, 2024. It is now read-only.
We made [Gutenberg](https://github.com/Wordpress/gutenberg) editor a little more **customizable**!
4
6
5
7
Gutenberg editor can **be easly included in your apps** with this [package](https://github.com/front/gutenberg-js). Also you can customize blocks menu panels, blocks categories, document panels and more!
6
8
7
-
This package is based on [Gutenberg v3.9.0](https://github.com/WordPress/gutenberg/releases/tag/v3.9.0).
9
+
This package is based on [Gutenberg v4.2.0-rc.1](https://github.com/WordPress/gutenberg/releases/tag/v4.2.0-rc.1).
8
10
9
11
## Table of contents
10
12
@@ -16,10 +18,10 @@ This package is based on [Gutenberg v3.9.0](https://github.com/WordPress/gutenbe
16
18
*[Wp block](#wp-block)
17
19
*[Posts and Pages](#posts-and-pages)
18
20
*[Categories](#categories)
19
-
*[Index](#index)
20
21
*[Media](#media)
21
22
*[Taxonomies](#taxonomies)
22
23
*[Blocks](#blocks)
24
+
*[Themes](#themes)
23
25
*[url](#url)
24
26
*[Usage](#usage)
25
27
*[Gutenberg Stores](#gutenberg-stores)
@@ -30,13 +32,14 @@ This package is based on [Gutenberg v3.9.0](https://github.com/WordPress/gutenbe
30
32
*[Custom blocks](#custom-blocks)
31
33
*[Creating and Registering](#creating-and-registering)
32
34
*[Sharing](#sharing)
35
+
*[Development](#development)
33
36
34
37
## Installation
35
38
36
39
**gutenberg-js** is available through npm.
37
40
38
41
```sh
39
-
npm install @frontkom/gutenberg-js
42
+
$ npm install @frontkom/gutenberg-js
40
43
```
41
44
42
45
[↑ Go up to Table of contents](#table-of-contents)
@@ -62,6 +65,17 @@ module.exports = {
62
65
}
63
66
```
64
67
68
+
GutenbergJS expects to find React (v16.4.1), ReactDOM (v16.4.1), moment (v2.22.1), jQuery (v1.12.4) and lodash (v4.17.5) libraries in the environment it runs. Maybe you would add the following lines to your pages.
[↑ Go up to Table of contents](#table-of-contents)
66
80
67
81
## Global variables
@@ -159,23 +173,6 @@ Check the WordPress API documentation for [Categories](https://developer.wordpre
159
173
160
174
[↑ Go up to Table of contents](#table-of-contents)
161
175
162
-
#### Index
163
-
164
-
Gutenberg will ask for the [theme features](https://codex.wordpress.org/Theme_Features) through the index request (`/`). The response should be the following object.
[↑ Go up to Table of contents](#table-of-contents)
178
-
179
176
#### Taxonomies
180
177
181
178
Taxonomies and Categories are requested to fill Categories panel in Document sidebar. Check the WordPress API documentation for [Taxonomies](https://developer.wordpress.org/rest-api/reference/taxonomies/).
@@ -214,6 +211,25 @@ There is no documentation for `/wp/v2/wp_blocks` or `/wp/v2/blocks` request yet,
214
211
215
212
Gutenberg editor allows us to create, edit, list, get one and delete one block operations, so make sure you expect GET, POST, PUT and DELETE requests.
216
213
214
+
[↑ Go up to Table of contents](#table-of-contents)
215
+
216
+
#### Themes
217
+
218
+
Gutenberg will ask for the [theme features](https://codex.wordpress.org/Theme_Features) through the index request (`/wp/v2/themes`). The response should be the following object.
[↑ Go up to Table of contents](#table-of-contents)
232
+
217
233
### url
218
234
219
235
***url*** should has a function called `addQueryArgs( url, args )` that handles with `url` and `args` and returns the final url to different actions. The original implementation is the following, feel free to keep it or change it according to your needs.
@@ -257,11 +273,6 @@ import { editPost } from '@frontkom/gutenberg-js';
0 commit comments