GithubHelp home page GithubHelp logo

isabella232 / shortcake-gutenberg Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wp-shortcake/shortcake-gutenberg

0.0 0.0 0.0 225 KB

Shim for rendering shortcodes registered with the Shortcake API as Gutenberg blocks.

JavaScript 67.69% PHP 22.22% CSS 5.62% HTML 4.47%

shortcake-gutenberg's Introduction

Shortcake Gutenberg shim

Provides a basic block preview and edit interface in the Gutenberg editor for all shortcodes that have UI registered through the Shortcake API.

This plugin is still rough and very much a work in process. Please open issues for any bugs or features that you find. Code review, testing, and contributions are very much welcome!

Installation

Install as a plugin.

This repo does not include the build directory, so if you want to activate it, you'll have to either use the dev server or build the assets before activating it.

Build production assets:

yarn install
yarn run build

Run the dev server:

After installing node modules as above, define SCRIPT_DEBUG = true in your wp-config and run

yarn start

to enable hot reloading.

Functionality

Currently, all shortcodes registered through Shortcake will have a block registered in the "Widgets" category. The only UI currently is a text input field for each attribute type. The same inputs are available in the block edit context and in advanced settings in the block inspector.

To come:

Please consider this a very basic proof of concept. There's a lot of work to be done to being the shortcode experience in the Gutenberg editor up to par with where it is in the classic WP editor, including but not limited to:

  • Rendering different input types for each of the attribute field types from Shortcake.
  • Providing some kind of translation between the js-hooks available in Shortcake and their corresponding Gutenberg components.
  • Design and UX feedback and contributions.
  • Accessibility testing!

shortcake-gutenberg's People

Contributors

goldenapples avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.