Socket
Socket
Sign inDemoInstall

strapi-plugin-gutenberg-editor

Package Overview
Dependencies
9
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    strapi-plugin-gutenberg-editor

WYSIWYG Gutenberg Editor plugin.


Version published
Weekly downloads
1
decreased by-85.71%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Strapi plugin gutenberg-editor

Replaces the Strapi WYSIWYG Rich Text editor with the WordPress Gutenberg editor. This is a proof of concept. It might be a little broken, there is no undo/redo, not all blocks have been tested, etc.

screenshot

Requirements

In order to transform the blocks to/from html, the blocks JSON needs to be saved to a separate field. You must add a JSON field titled gutenberg_blocks to your content type.

Usage:

  • npm install strapi-plugin-gutenberg-editor / yarn add strap-plugin-gutenberg-editor
  • Run strapi build in order to build the plugin: npm run build && npm run develop / yarn build && yarn develop
  • Add a Rich Text field to your content type
  • Add a JSON field titled gutenberg_blocks to your content type
  • When editing your content, click the Open Gutenberg Editor button
  • Your changes are automatically saved to the gutenberg_blocks JSON field. This is so the gutenberg structure can be fed back in to the editor from your saved state (converting the saved html output back to gutenberg is unreliable)
  • You can use the html output of your rich text content type in your front end as normal

notes

You might want to copy the blocks css from wordpress core and include it in your frontend: /wp-includes/css/dist/block-library/style.css.

There's known issue when directly uploading an image (rather than opening the media library). You will get an OS file picker, then after picking the file you will be presented with he strapi media uploader drop file UI. At this point you just need to press back within the media uploader UI, and the file you chose will be show and ready to upload. The whole integration with the Strapi Media Uploader feels pretty hacky, but it is working nonetheless.

Keywords

FAQs

Last updated on 22 Feb 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc