Skip to content
This repository was archived by the owner on Dec 23, 2023. It is now read-only.

Commit 29717a0

Browse files
chore(release): 2.0.0 [skip ci]
# [2.0.0](v1.5.1...v2.0.0) (2022-03-19) ### Bug Fixes * added /api/ to byUrl and byFile ([211c1f3](211c1f3)) * fixed the image tool. Now able to add images from the media library, and automatically shuts the media library window after saving. ([fb5a907](fb5a907)) * include label for the rich text editor field ([73187d7](73187d7)) * refactored to allow copy and paste images from another website ([3330250](3330250)), closes [#5](#5) * returned to making API route only be 'react-editorjs' ([ee9b747](ee9b747)) * solution for [#5](#5) axios ([1f2d9a7](1f2d9a7)) * feat!: updates to allow Strapi v4 functionality ([72b4913](72b4913)) ### Features * add background to focused block & differentiate image tool caption ([a5d2b1b](a5d2b1b)) * add width, height, size, mime, responsive data to image tool ([e07548c](e07548c)), closes [#6](#6) [#16](#16) * enabled inline links ([ad11533](ad11533)) ### BREAKING CHANGES * This update refactors the plugin to work in Strapi v4. This code will not work in Strapi v3. At this time, the Image tool is not functioning. The link tool works, but thumbnails are being blocked by Strapi 4's contentSecurityPolicy. The current workaround for this is to replace the 'strapi::security' default export in ./config/middlewares.js to the following code (do this at your own risk): "{ name: 'strapi::security', config: { contentSecurityPolicy: false }, }," I've yet to find a solution that can be baked into the plugin itself. I have also added "auth: false" to the routes config so that it is not necessary to give authenticated and public permissions to the plugin. This may need to be removed if it is seen as a security risk. Custom styles have been added to Wysiwyg/wrapper.js for headers (H1-H6) because Strapi resets styles and there is no styling for the plugin without them. I have updated editorjs to 2.23.2 and several other of the plugins (see package.json). I've also added @buffetjs/core and @buffetjs/styles to package.json because the library is not in Strapi now. I also removed "axios" because that library is in Strapi. I updated node to the following: "node": ">=10.16.0 <=16.x.x"
1 parent cd5c0cb commit 29717a0

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

CHANGELOG.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,43 @@
1+
# [2.0.0](https://github.com/melishev/strapi-plugin-editor-js/compare/v1.5.1...v2.0.0) (2022-03-19)
2+
3+
4+
### Bug Fixes
5+
6+
* added /api/ to byUrl and byFile ([211c1f3](https://github.com/melishev/strapi-plugin-editor-js/commit/211c1f3bbfd8ed551021488dfd24f2c6d4caddf3))
7+
* fixed the image tool. Now able to add images from the media library, and automatically shuts the media library window after saving. ([fb5a907](https://github.com/melishev/strapi-plugin-editor-js/commit/fb5a907de6d4d6399b6a5e23b596d9893159944c))
8+
* include label for the rich text editor field ([73187d7](https://github.com/melishev/strapi-plugin-editor-js/commit/73187d73977d25ddb317c890cc2b5f48e72ed94c))
9+
* refactored to allow copy and paste images from another website ([3330250](https://github.com/melishev/strapi-plugin-editor-js/commit/3330250a03e64e41095057b8ecd7290e4c6f688c)), closes [#5](https://github.com/melishev/strapi-plugin-editor-js/issues/5)
10+
* returned to making API route only be 'react-editorjs' ([ee9b747](https://github.com/melishev/strapi-plugin-editor-js/commit/ee9b74759786f8bcd87135a80932a14885f5a3f7))
11+
* solution for [#5](https://github.com/melishev/strapi-plugin-editor-js/issues/5) axios ([1f2d9a7](https://github.com/melishev/strapi-plugin-editor-js/commit/1f2d9a73c7fb2a7653d8e7527cbd2c03f76335c5))
12+
13+
14+
* feat!: updates to allow Strapi v4 functionality ([72b4913](https://github.com/melishev/strapi-plugin-editor-js/commit/72b491313b172629cfab129586c68d80e6c508d8))
15+
16+
17+
### Features
18+
19+
* add background to focused block & differentiate image tool caption ([a5d2b1b](https://github.com/melishev/strapi-plugin-editor-js/commit/a5d2b1b5650926014da076c9844739ffe6a81897))
20+
* add width, height, size, mime, responsive data to image tool ([e07548c](https://github.com/melishev/strapi-plugin-editor-js/commit/e07548ca71e7ffc211acb53e8aa556ef2fe660e6)), closes [#6](https://github.com/melishev/strapi-plugin-editor-js/issues/6) [#16](https://github.com/melishev/strapi-plugin-editor-js/issues/16)
21+
* enabled inline links ([ad11533](https://github.com/melishev/strapi-plugin-editor-js/commit/ad11533f0ba260cb1671bbd62ef7641bfd06512a))
22+
23+
24+
### BREAKING CHANGES
25+
26+
* This update refactors the plugin to work in Strapi v4. This code will not work in Strapi v3. At this time, the Image tool is not functioning. The link tool works, but thumbnails are being blocked by Strapi 4's contentSecurityPolicy. The current workaround for this is to replace the 'strapi::security' default export in ./config/middlewares.js to the following code (do this at your own risk):
27+
28+
"{
29+
name: 'strapi::security',
30+
config: {
31+
contentSecurityPolicy: false
32+
},
33+
},"
34+
35+
I've yet to find a solution that can be baked into the plugin itself. I have also added "auth: false" to the routes config so that it is not necessary to give authenticated and public permissions to the plugin. This may need to be removed if it is seen as a security risk.
36+
37+
Custom styles have been added to Wysiwyg/wrapper.js for headers (H1-H6) because Strapi resets styles and there is no styling for the plugin without them.
38+
39+
I have updated editorjs to 2.23.2 and several other of the plugins (see package.json). I've also added @buffetjs/core and @buffetjs/styles to package.json because the library is not in Strapi now. I also removed "axios" because that library is in Strapi. I updated node to the following: "node": ">=10.16.0 <=16.x.x"
40+
141
# [2.0.0-beta.2](https://github.com/melishev/strapi-plugin-editor-js/compare/v2.0.0-beta.1...v2.0.0-beta.2) (2022-03-13)
242

343

0 commit comments

Comments
 (0)