vysotsky-productions/nova-gutenberg

Implementation of the Gutenberg editor as a Laravel Nova Field based on Laraberg.

0.2.2 2019-09-22 08:03 UTC

README

Forked from Gutenberg editor.

Changes

  • Change text direction ability.
  • Fixed hard reload on save.

Requirements

  • Laravel Nova
  • PHP 7.1.0+

Installation

  1. Install the package:
composer require vysotsky-productions/nova-gutenberg:*
  1. Publish Laravel FileManager's assets and config:
php artisan vendor:publish --tag=lfm_config
php artisan vendor:publish --tag=lfm_public

Usage

use VysotskyProductions\NovaGutenberg\Gutenberg;

class BlogPost extends Resource
{
    // ...

    public function fields(Request $request) : array
    {
        return [
            // ...
            Gutenberg::make("Content")
                ->direction("rtl"),
            // ...
        ];
    }

    // ...
}