CD2 Gutenberg Shortcode Block Preview

Description

This plugin adds a block CD2 Shortcode, which enables previewing shortcodes using the WordPress REST API.

All work from this plugin was originally part of works to get this functionality into Gutenberg pre-core merge.

This plugin only exists because the existing shortcode block doesn’t give designers or non-coders anything to go on.

Due to gutenberg being a little unstable this plugin may break from time to time, let me know via the support tab, and I’ll do my best to keep on top of it.

Contributors & Developers

“CD2 Gutenberg Shortcode Block Preview” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.0.5

Changed

  • Tested with 5.2.2

1.0.4

Fixed

  • API breakages by Gutenberg team

Changed

  • Default version of PHP is now 7.0
  • Updated npm dependencies

1.0.3

Fixed

  • Gutenberg team has let to learn or care about stabilizing an API. Most patches to this have been changing JS namespaces. (Thanks for that). The reasons you as a site-owner should care about this is that the plugin breaks because of Gutenberg, and then I have to go search wordpress/gutenberg for how the imports have changed before you can update Gutenberg / WordPress.

1.0.2

Added

  • Updated changelog entries

Fixed

  • Added changelog from 0.0.2

1.0.1

Added

  • Unit Testing via 10up/wp_mock
  • Improved reliability

Changed

  • Plugin code is now namespaced
  • cd2 function prefix is removed as namespacing handles

Fixed

  • Gutenberg revised their API, breaking 0.0.1 and 0.0.2 block now works again
  • if the block is turned off it is converted to a classic editor block

0.0.2

Added

  • N/A

Changed

  • Media added so this doesn’t look so bland on plugin DIR

Fixed

  • N/A

0.0.1

Added

  • Shortcode block with default preview mode (when not placeholder / empty)
  • REST API endpoint for shortcode rendering