melishev / strapi-plugin-react-editorjs

📝 Plugin for Strapi Headless CMS, hiding the standard WYSIWYG editor on Editor.js
https://www.npmjs.com/package/strapi-plugin-react-editorjs
MIT License
171 stars 80 forks source link

Image tool now functioning with new features on Strapi V4 #20

Closed jaskipper closed 2 years ago

jaskipper commented 2 years ago

I now have the image tool working. I've changed some code and added some comparing this code with the following tutorial: https://docs.strapi.io/developer-docs/latest/guides/registering-a-field-in-admin.html#creating-the-wysiwyg.

jaskipper commented 2 years ago

Commit https://github.com/melishev/strapi-plugin-react-editorjs/commit/e07548ca71e7ffc211acb53e8aa556ef2fe660e6 adds in width, height, size, mime and responsive data to the image tool. Commits f318525 and 5949de0 cleaned up the responses. Here is a screenshot of the returned image data after being turned into a json object.

Screen Shot 2022-02-26 at 6 32 58 AM

jaskipper commented 2 years ago

@melishev - For the most part, I believe that I am done with commits to this. Please check 6223702, as this a complete refactoring of Wysiwyg > index.js. I've removed the usage of @buffetjs.

1f2d9a7 fixes issue #5

From everything that I can tell, with all of these changes, EditorJS is working perfectly in v4 with the following exceptions:

  1. Link tool doesn't work properly in strapi develop --watch-admin mode
  2. Link tool doesn't work properly when @strapi/mailgun-js is installed.
jaskipper commented 2 years ago

@melishev I believe that all changes that you requested have been completed.

melishev commented 2 years ago

:tada: This PR is included in version 2.0.0-beta.2 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

melishev commented 2 years ago

:tada: This PR is included in version 2.0.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: