genealabs / nova-gutenberg
Implementation of the Gutenberg editor as a Laravel Nova Field based on Laraberg.
Fund package maintenance!
mikebronner
Installs: 19 351
Dependents: 0
Suggesters: 0
Security: 0
Stars: 108
Watchers: 6
Forks: 21
Open Issues: 10
Language:Vue
Requires
- laravel/nova: ^4.0
- symfony/thanks: ^1.2
- unisharp/laravel-filemanager: *
- van-ons/laraberg: *
- dev-master
- 0.6.1
- 0.6.0
- 0.5.0
- 0.4.10
- 0.4.9
- 0.4.8
- 0.4.7
- 0.4.6
- 0.4.5
- 0.4.4
- 0.4.3
- 0.4.2
- 0.4.1
- 0.4.0
- 0.3.4
- 0.3.3
- 0.3.2
- 0.3.1
- 0.3.0
- 0.2.0
- 0.1.9
- 0.1.8
- 0.1.7
- 0.1.6
- 0.1.5
- 0.1.4
- 0.1.3
- 0.1.2
- 0.1.1
- 0.1.0
- dev-dependabot/add-v2-config-file
- dev-develop
- dev-update-gutenberg
- dev-feature/update-laraberg-dependency-to-version-1
- dev-revert-7-master
This package is auto-updated.
Last update: 2024-04-12 22:47:14 UTC
README
This package has been archived in favor of using Nova's inbuilt Trix editor. Integrating Gutenberg into Laravel/Nova properly has always been riddled with issues, and it's probably better to move on to something better.
Implementation of the Gutenberg editor as a Laravel Nova Field based on Laraberg.
Requirements
- Laravel Nova
- PHP 7.1.0+
Implemented Functionality
- Editor field in form.
- Field on index listing.
- Field on resource display.
- Image upload functionality.
Limitations
- Currently you can only have one Gutenberg field on a given page, due to how the Gutenberg library is implemented. Efforts are being made to address this upstream, but it has yet to be determined if that is possible.
- The editor UI still allows and prompts for drag-and-drop functionality. Unfortunately that is currently not functional, and the Media Library button must be used instead.
Installation
- Install the package:
composer require genealabs/nova-gutenberg
- Add the following to your scripts section in
composer.json
:
"post-package-update": [ "@php artisan vendor:publish --provider='VanOns\\Laraberg\\LarabergServiceProvider' --tag='public' --force", "@php artisan vendor:publish --tag=lfm_config", "@php artisan vendor:publish --tag=lfm_public" ]
- Run
composer update
.
Usage
use GeneaLabs\NovaGutenberg\Gutenberg; class BlogPost extends Resource { // ... public function fields(Request $request) : array { return [ // ... Gutenberg::make("Content"), // ... ]; } // ... }