📝 Official EnlighterJS Plugin for WordPress Gutenberg Editor
  • JavaScript 89.9%
  • Less 5.2%
  • PHP 4.7%
  • Shell 0.2%
Find a file
2022-03-15 15:36:18 +01:00
assets transforms for legacy enlighter codeblocks 2018-12-26 15:25:45 +01:00
css added left-align-indentation #35 2022-03-12 14:12:16 +01:00
dist added selected language as button text to the block toolbar 2022-03-15 15:36:18 +01:00
src added selected language as button text to the block toolbar 2022-03-15 15:36:18 +01:00
.eslintignore initial plugin skeleton 2018-08-04 12:43:32 +02:00
.eslintrc.json disable some jsx linting rules 2018-08-04 18:20:07 +02:00
.gitignore initial 2018-08-03 18:08:54 +02:00
babel.config.json updated buildsystem 2020-08-22 18:40:07 +02:00
build.xml initial plugin skeleton 2018-08-04 12:43:32 +02:00
CHANGES.md added selected language as button text to the block toolbar 2022-03-15 15:36:18 +01:00
enlighter-gutenberg.php compatibility with recent gutenberg versions 2020-08-22 18:40:29 +02:00
gulp initial plugin skeleton 2018-08-04 12:43:32 +02:00
gulpfile.js release 1.1.0 2020-08-25 16:04:51 +02:00
LICENSE.txt initial 2018-08-03 18:08:54 +02:00
package.json added left-align-indentation #35 2022-03-12 14:12:16 +01:00
README.md enhanced inline ui design 2020-08-25 15:31:13 +02:00
yarn.lock added left-align-indentation #35 2022-03-12 14:12:16 +01:00

EnlighterJS Plugin for Gutenberg Editor

Gutenberg Editor Integration

Current Limitations

  • Legacy EnlighterJS code cannot be transformed to blocks by the "Transform to Blocks" utility of the classic editor.
    Caused By: gutenberg/8648
  • Newly created codeblocks (via Gutenberg) mess up the HTML with unused attributes because of a validation issue.
    Caused By: gutenberg/8532 / gutenberg/7604

Usage

As integral part of the Enlighter WordPress Plugin (future)

Development

  1. Create the plugin directory wp-content/plugins/enlighter-gutenberg
  2. Copy enlighter-gutenberg.php and dist/ into this directory
  3. Activate the plugin

Required Directory Structure

wp-content/
   | - plugins/
   |      | -enlighter-gutenberg/
   |      |       |- enlighter-gutenberg.php
   |      |       |- dist/
   |      |       |      |- enlighterjs.gutenberg.min.css 
   |      |       |      |- enlighterjs.gutenberg.min.js

License

EnlighterJS.Gutenberg is OpenSource and licensed under the Terms of Mozilla Public License 2.0. You're welcome to contribute