Skip to content

faisal-alvi/convert-classic-editor-to-gb-blocks

 
 

Repository files navigation

GB Script

Convert Classic Editor to Gutenberg Blocks

⚠️ Note: This is a beta version of a GB Script Plugin. Use it for contributions only. Get stable version here.

Welcome to the GB Script Plugin repository on GitHub. Get a dive into the source, open issues and contribute! This plugin is useful to convert your Classic Editor Post/Page to Gutenberg Blocks automatically!

Why we Started

The Gutenberg was officially announced as a part of WordPress core with the v.5.0 "Bebo" release on December 6, 2018. Since this release, if earlier version websites need to update to Guttenberg version, they have to convert posts into Gutenberg Blocks. The complex content from classic editor require a custom blocks to be built for successful conversion. 💭

Even the Gutenberg is not (yet) providing “Classic to Gutenberg conversion” facility. 💡 This is what pushed us to help community by developing such script which automatically does this job. And we are here with the “GB Script”. 🤗

Let's have a look at how to use this plugin.

How to Use

Step 1

Download, install & activate a required plugin, Multipurpose Gutenberg Block from here.

Step 2

Download, install & activate GB Script Plugin from here.

Step 3

Activating these 2 plugins will enable a new button “Convert to Gutenberg Blocks” at the top of editor screen for every Post or Page. Go to the post/page with classic editor content and click on this button.

Getting_Started_01

Step 4

A new clone of post/page will be created as a draft and converted into the Gutenberg Blocks.

Getting_Started_02

Step 5

If you like the new draft, just copy and use the title and slug from the Original post to the new Gutenberg post and delete the original post. You can now publish your new Gutenberg post.

Supported Tags

The following HTML Tags are supported in this Plugin. These HTML tags will be converted from Classic to Gutenberg.

Supported Tags ✔️
<div> <img> <table> <h1> <h1>
<h2> <h3> <h4> <h5> <h6>
<ul> <li> <ol> <header> <section>
<pre> <blockquote> <style> <script> Many more to come..

Minimum Requirement

This plugin requires Multipurpose Gutenberg Block plugin.

How to Contribute

As this plugin is free and for community’s sake only, contributions from community is also expected.

  • Create 'fork' of this repository to your account(you will get this option at top right of this page);
  • Create branch into your fork repository like development if it exists else from master.
  • Take Clone of this fork repository to your local system.
  • Write your clean code and test with PHPCS with WordpressVIPMinimum coding standard.
  • Commit Your code from your local system.
  • And Finally click Pull Request from your fork repository.
  • This github article will helpful for how to submit pull request from the fork.

Support

This repository is not for the support. Please use it for GB Script core issues only. To get help/support, please email us at help@multidots.com

Help/Support requests as issues on this repository will be closed.

Future Planning

  • Bulk Conversion from Classic to Gutenberg
  • Report & Analysis for Admin
  • Youtube embed Block
  • Gutenberg to Classic Reverse Conversion

We are planning to add more and more complex blocks to cover and easily convertible through the GB Script. Keep updated on the releases.

Looking forward to your love ❤️ and support through your valuable contribution.

License

GPL-3.0 © 2019 Multidots

Releases

No releases published

Packages

No packages published

Languages

  • PHP 53.6%
  • CSS 45.8%
  • JavaScript 0.6%